References Server
Reference
C
Class

ApiPlatform\OpenApi\Model\Server

class ApiPlatform\OpenApi\Model\Server
{
    public __construct(string $url, string $description, null|ArrayObject $variables)
    public getUrl(): string
    public getDescription(): string
    public getVariables(): ArrayObject
    public withUrl(string $url): ApiPlatform\OpenApi\Model\Server
    public withDescription(string $description): ApiPlatform\OpenApi\Model\Server
    public withVariables(ArrayObject $variables): ApiPlatform\OpenApi\Model\Server
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $url, string $description, null|ArrayObject $variables)

Parameters

urlstring
descriptionstring
variablesArrayObject

getUrl

public getUrl(): string

Returns

string

getDescription

public getDescription(): string

Returns

string

getVariables

public getVariables(): ArrayObject

Returns

ArrayObject

withUrl

public withUrl(string $url): ApiPlatform\OpenApi\Model\Server

Parameters

urlstring

Returns

<a href="/docs/main/references/OpenApi/Model/Server">ApiPlatform\OpenApi\Model\Server</a>

withDescription

public withDescription(string $description): ApiPlatform\OpenApi\Model\Server

Parameters

descriptionstring

Returns

<a href="/docs/main/references/OpenApi/Model/Server">ApiPlatform\OpenApi\Model\Server</a>

withVariables

public withVariables(ArrayObject $variables): ApiPlatform\OpenApi\Model\Server

Parameters

variablesArrayObject

Returns

<a href="/docs/main/references/OpenApi/Model/Server">ApiPlatform\OpenApi\Model\Server</a>

withExtensionProperty

public withExtensionProperty(string $key, $value)

Parameters

keystring
value

Returns

getExtensionProperties

public getExtensionProperties(): array

Returns

array

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop