References Encoding
Reference
C
Class

ApiPlatform\OpenApi\Model\Encoding

class ApiPlatform\OpenApi\Model\Encoding
{
    public __construct(string $contentType, null|ArrayObject $headers, string $style, bool $explode, bool $allowReserved)
    public getContentType(): string
    public getHeaders(): ArrayObject
    public getStyle(): string
    public canExplode(): bool
    public getExplode(): bool
    public canAllowReserved(): bool
    public getAllowReserved(): bool
    public withContentType(string $contentType): ApiPlatform\OpenApi\Model\Encoding
    public withHeaders(null|ArrayObject $headers): ApiPlatform\OpenApi\Model\Encoding
    public withStyle(string $style): ApiPlatform\OpenApi\Model\Encoding
    public withExplode(bool $explode): ApiPlatform\OpenApi\Model\Encoding
    public withAllowReserved(bool $allowReserved): ApiPlatform\OpenApi\Model\Encoding
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $contentType, null|ArrayObject $headers, string $style, bool $explode, bool $allowReserved)

Parameters

contentTypestring
headersArrayObject
stylestring
explodebool
allowReservedbool

getContentType

public getContentType(): string

Returns

string

getHeaders

public getHeaders(): ArrayObject

Returns

ArrayObject

getStyle

public getStyle(): string

Returns

string

canExplode

public canExplode(): bool

Returns

bool

getExplode

public getExplode(): bool

Returns

bool

canAllowReserved

public canAllowReserved(): bool

Returns

bool

getAllowReserved

public getAllowReserved(): bool

Returns

bool

withContentType

public withContentType(string $contentType): ApiPlatform\OpenApi\Model\Encoding

Parameters

contentTypestring

Returns

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

withHeaders

public withHeaders(null|ArrayObject $headers): ApiPlatform\OpenApi\Model\Encoding

Parameters

headersArrayObject

Returns

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

withStyle

public withStyle(string $style): ApiPlatform\OpenApi\Model\Encoding

Parameters

stylestring

Returns

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

withExplode

public withExplode(bool $explode): ApiPlatform\OpenApi\Model\Encoding

Parameters

explodebool

Returns

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

withAllowReserved

public withAllowReserved(bool $allowReserved): ApiPlatform\OpenApi\Model\Encoding

Parameters

allowReservedbool

Returns

<a href="/docs/main/references/OpenApi/Model/Encoding">ApiPlatform\OpenApi\Model\Encoding</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