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
}
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)
public __construct(string $description, null|ArrayObject $content, bool $required)

Parameters

descriptionstring
contentArrayObject
requiredbool

getDescription

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

Returns

string

getContent

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

Returns

ArrayObject

getRequired

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

Returns

bool

withDescription

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

Parameters

descriptionstring

Returns

ApiPlatform\OpenApi\Model\RequestBody

withContent

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

Parameters

contentArrayObject

Returns

ApiPlatform\OpenApi\Model\RequestBody

withRequired

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

Parameters

requiredbool

Returns

ApiPlatform\OpenApi\Model\RequestBody

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