Api Platform conference
Register now
References Parameter
API Platform Conference
September 19-20, 2024 | Lille & online

The international conference on the API Platform Framework

Get ready for game-changing announcements for the PHP community!

The API Platform Conference 2024 is happening soon, and it's close to selling out.
API Platform 4, Caddy web server, Xdebug, AI... Enjoy two days of inspiring talks with our friendly community and our amazing speakers.

Only a few tickets left!
Reference
C
Class

# ApiPlatform\OpenApi\Model\Parameter

class ApiPlatform\OpenApi\Model\Parameter
{
    public __construct(string $name, 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 getName(): string
    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 withName(string $name): ApiPlatform\OpenApi\Model\Parameter
    public withIn(string $in): ApiPlatform\OpenApi\Model\Parameter
    public withDescription(string $description): ApiPlatform\OpenApi\Model\Parameter
    public withRequired(bool $required): ApiPlatform\OpenApi\Model\Parameter
    public withDeprecated(bool $deprecated): ApiPlatform\OpenApi\Model\Parameter
    public withAllowEmptyValue(bool $allowEmptyValue): ApiPlatform\OpenApi\Model\Parameter
    public withSchema(array $schema): ApiPlatform\OpenApi\Model\Parameter
    public withStyle(string $style): ApiPlatform\OpenApi\Model\Parameter
    public withExplode(bool $explode): ApiPlatform\OpenApi\Model\Parameter
    public withAllowReserved(bool $allowReserved): ApiPlatform\OpenApi\Model\Parameter
    public withExample($example): ApiPlatform\OpenApi\Model\Parameter
    public withExamples(ArrayObject $examples): ApiPlatform\OpenApi\Model\Parameter
    public withContent(ArrayObject $content): ApiPlatform\OpenApi\Model\Parameter
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

# Methods

# __construct

public __construct(string $name, 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

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

# getName

public getName(): string

# Returns

string

# 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

# withName

public withName(string $name): ApiPlatform\OpenApi\Model\Parameter

# Parameters

namestring

# Returns

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

# withIn

public withIn(string $in): ApiPlatform\OpenApi\Model\Parameter

# Parameters

instring

# Returns

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

# withDescription

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

# Parameters

descriptionstring

# Returns

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

# withRequired

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

# Parameters

requiredbool

# Returns

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

# withDeprecated

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

# Parameters

deprecatedbool

# Returns

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

# withAllowEmptyValue

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

# Parameters

allowEmptyValuebool

# Returns

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

# withSchema

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

# Parameters

schemaarray

# Returns

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

# withStyle

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

# Parameters

stylestring

# Returns

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

# withExplode

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

# Parameters

explodebool

# Returns

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

# withAllowReserved

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

# Parameters

allowReservedbool

# Returns

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

# withExample

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

# Parameters

example

# Returns

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

# withExamples

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

# Parameters

examplesArrayObject

# Returns

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

# withContent

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

# Parameters

contentArrayObject

# Returns

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