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
}
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)
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
public getName(): string

Returns

string

getIn

public getIn(): string
public getIn(): string

Returns

string

getDescription

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

Returns

string

getRequired

public getRequired(): bool
public getRequired(): bool

Returns

bool

getDeprecated

public getDeprecated(): bool
public getDeprecated(): bool

Returns

bool

canAllowEmptyValue

public canAllowEmptyValue(): bool
public canAllowEmptyValue(): bool

Returns

bool

getAllowEmptyValue

public getAllowEmptyValue(): bool
public getAllowEmptyValue(): bool

Returns

bool

getSchema

public getSchema(): array
public getSchema(): array

Returns

array

getStyle

public getStyle(): string
public getStyle(): string

Returns

string

canExplode

public canExplode(): bool
public canExplode(): bool

Returns

bool

getExplode

public getExplode(): bool
public getExplode(): bool

Returns

bool

canAllowReserved

public canAllowReserved(): bool
public canAllowReserved(): bool

Returns

bool

getAllowReserved

public getAllowReserved(): bool
public getAllowReserved(): bool

Returns

bool

getExample

public getExample()
public getExample()

getExamples

public getExamples(): ArrayObject
public getExamples(): ArrayObject

Returns

ArrayObject

getContent

public getContent(): ArrayObject
public getContent(): ArrayObject

Returns

ArrayObject

withName

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

Parameters

namestring

Returns

ApiPlatform\OpenApi\Model\Parameter

withIn

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

Parameters

instring

Returns

ApiPlatform\OpenApi\Model\Parameter

withDescription

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

Parameters

descriptionstring

Returns

ApiPlatform\OpenApi\Model\Parameter

withRequired

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

Parameters

requiredbool

Returns

ApiPlatform\OpenApi\Model\Parameter

withDeprecated

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

Parameters

deprecatedbool

Returns

ApiPlatform\OpenApi\Model\Parameter

withAllowEmptyValue

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

Parameters

allowEmptyValuebool

Returns

ApiPlatform\OpenApi\Model\Parameter

withSchema

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

Parameters

schemaarray

Returns

ApiPlatform\OpenApi\Model\Parameter

withStyle

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

Parameters

stylestring

Returns

ApiPlatform\OpenApi\Model\Parameter

withExplode

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

Parameters

explodebool

Returns

ApiPlatform\OpenApi\Model\Parameter

withAllowReserved

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

Parameters

allowReservedbool

Returns

ApiPlatform\OpenApi\Model\Parameter

withExample

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

Parameters

example

Returns

ApiPlatform\OpenApi\Model\Parameter

withExamples

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

Parameters

examplesArrayObject

Returns

ApiPlatform\OpenApi\Model\Parameter

withContent

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

Parameters

contentArrayObject

Returns

ApiPlatform\OpenApi\Model\Parameter

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