References Header
Reference
C
Class

ApiPlatform\OpenApi\Model\Header

class ApiPlatform\OpenApi\Model\Header
{
    public __construct(string $in, string $description, bool $required, bool $deprecated, bool $allowEmptyValue, array $schema, null|string $style, bool $explode, bool $allowReserved, $example, null|ArrayObject $examples, null|ArrayObject $content)
    public getIn(): string
    public getDescription(): string
    public getRequired(): bool
    public getDeprecated(): bool
    public canAllowEmptyValue(): bool
    public getAllowEmptyValue(): bool
    public getSchema(): array
    public getStyle(): string
    public canExplode(): bool
    public getExplode(): bool
    public canAllowReserved(): bool
    public getAllowReserved(): bool
    public getExample()
    public getExamples(): ArrayObject
    public getContent(): ArrayObject
    public withDescription(string $description): ApiPlatform\OpenApi\Model\Header
    public withRequired(bool $required): ApiPlatform\OpenApi\Model\Header
    public withDeprecated(bool $deprecated): ApiPlatform\OpenApi\Model\Header
    public withAllowEmptyValue(bool $allowEmptyValue): ApiPlatform\OpenApi\Model\Header
    public withSchema(array $schema): ApiPlatform\OpenApi\Model\Header
    public withStyle(string $style): ApiPlatform\OpenApi\Model\Header
    public withExplode(bool $explode): ApiPlatform\OpenApi\Model\Header
    public withAllowReserved(bool $allowReserved): ApiPlatform\OpenApi\Model\Header
    public withExample($example): ApiPlatform\OpenApi\Model\Header
    public withExamples(ArrayObject $examples): ApiPlatform\OpenApi\Model\Header
    public withContent(ArrayObject $content): ApiPlatform\OpenApi\Model\Header
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $in, string $description, bool $required, bool $deprecated, bool $allowEmptyValue, array $schema, null|string $style, bool $explode, bool $allowReserved, $example, null|ArrayObject $examples, null|ArrayObject $content)

Parameters

instring
descriptionstring
requiredbool
deprecatedbool
allowEmptyValuebool
schemaarray
stylestring
explodebool
allowReservedbool
example
examplesArrayObject
contentArrayObject

getIn

public getIn(): string

Returns

string

getDescription

public getDescription(): string

Returns

string

getRequired

public getRequired(): bool

Returns

bool

getDeprecated

public getDeprecated(): bool

Returns

bool

canAllowEmptyValue

public canAllowEmptyValue(): bool

Returns

bool

getAllowEmptyValue

public getAllowEmptyValue(): bool

Returns

bool

getSchema

public getSchema(): array

Returns

array

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

getExample

public getExample()

getExamples

public getExamples(): ArrayObject

Returns

ArrayObject

getContent

public getContent(): ArrayObject

Returns

ArrayObject

withDescription

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

Parameters

descriptionstring

Returns

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

withRequired

public withRequired(bool $required): ApiPlatform\OpenApi\Model\Header

Parameters

requiredbool

Returns

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

withDeprecated

public withDeprecated(bool $deprecated): ApiPlatform\OpenApi\Model\Header

Parameters

deprecatedbool

Returns

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

withAllowEmptyValue

public withAllowEmptyValue(bool $allowEmptyValue): ApiPlatform\OpenApi\Model\Header

Parameters

allowEmptyValuebool

Returns

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

withSchema

public withSchema(array $schema): ApiPlatform\OpenApi\Model\Header

Parameters

schemaarray

Returns

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

withStyle

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

Parameters

stylestring

Returns

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

withExplode

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

Parameters

explodebool

Returns

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

withAllowReserved

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

Parameters

allowReservedbool

Returns

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

withExample

public withExample($example): ApiPlatform\OpenApi\Model\Header

Parameters

example

Returns

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

withExamples

public withExamples(ArrayObject $examples): ApiPlatform\OpenApi\Model\Header

Parameters

examplesArrayObject

Returns

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

withContent

public withContent(ArrayObject $content): ApiPlatform\OpenApi\Model\Header

Parameters

contentArrayObject

Returns

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