Reference
C
Class

ApiPlatform\OpenApi\Model\ExternalDocumentation

class ApiPlatform\OpenApi\Model\ExternalDocumentation
{
    public __construct(string $description, string $url)
    public getDescription(): string
    public getUrl(): string
    public withDescription(string $description): ApiPlatform\OpenApi\Model\ExternalDocumentation
    public withUrl(string $url): ApiPlatform\OpenApi\Model\ExternalDocumentation
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}
class ApiPlatform\OpenApi\Model\ExternalDocumentation
{
    public __construct(string $description, string $url)
    public getDescription(): string
    public getUrl(): string
    public withDescription(string $description): ApiPlatform\OpenApi\Model\ExternalDocumentation
    public withUrl(string $url): ApiPlatform\OpenApi\Model\ExternalDocumentation
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $description, string $url)
public __construct(string $description, string $url)

Parameters

descriptionstring
urlstring

getDescription

public getDescription(): string
public getDescription(): string

Returns

string

getUrl

public getUrl(): string
public getUrl(): string

Returns

string

withDescription

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

Parameters

descriptionstring

Returns

ApiPlatform\OpenApi\Model\ExternalDocumentation

withUrl

Parameters

urlstring

Returns

ApiPlatform\OpenApi\Model\ExternalDocumentation

withExtensionProperty

public withExtensionProperty(string $key, $value)
public withExtensionProperty(string $key, $value)

Parameters

keystring
value

Returns

getExtensionProperties

public getExtensionProperties(): array
public getExtensionProperties(): array

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop