References RequestBody
Reference
C
Class

ApiPlatform\OpenApi\Model\RequestBody

class ApiPlatform\OpenApi\Model\RequestBody
{
    public __construct(string $description, null|ArrayObject $content, bool $required)
    public getDescription(): string
    public getContent(): ArrayObject
    public getRequired(): bool
    public withDescription(string $description): ApiPlatform\OpenApi\Model\RequestBody
    public withContent(ArrayObject $content): ApiPlatform\OpenApi\Model\RequestBody
    public withRequired(bool $required): ApiPlatform\OpenApi\Model\RequestBody
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $description, null|ArrayObject $content, bool $required)

Parameters

descriptionstring
contentArrayObject
requiredbool

getDescription

public getDescription(): string

Returns

string

getContent

public getContent(): ArrayObject

Returns

ArrayObject

getRequired

public getRequired(): bool

Returns

bool

withDescription

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

Parameters

descriptionstring

Returns

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

withContent

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

Parameters

contentArrayObject

Returns

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

withRequired

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

Parameters

requiredbool

Returns

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