References Response
Reference
C
Class

ApiPlatform\OpenApi\Model\Response

class ApiPlatform\OpenApi\Model\Response
{
    public __construct(string $description, null|ArrayObject $content, null|ArrayObject $headers, null|ArrayObject $links)
    public getDescription(): string
    public getContent(): ArrayObject
    public getHeaders(): ArrayObject
    public getLinks(): ArrayObject
    public withDescription(string $description): ApiPlatform\OpenApi\Model\Response
    public withContent(ArrayObject $content): ApiPlatform\OpenApi\Model\Response
    public withHeaders(ArrayObject $headers): ApiPlatform\OpenApi\Model\Response
    public withLinks(ArrayObject $links): ApiPlatform\OpenApi\Model\Response
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $description, null|ArrayObject $content, null|ArrayObject $headers, null|ArrayObject $links)

Parameters

descriptionstring
contentArrayObject
headersArrayObject
linksArrayObject

getDescription

public getDescription(): string

Returns

string

getContent

public getContent(): ArrayObject

Returns

ArrayObject

getHeaders

public getHeaders(): ArrayObject

Returns

ArrayObject

public getLinks(): ArrayObject

Returns

ArrayObject

withDescription

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

Parameters

descriptionstring

Returns

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

withContent

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

Parameters

contentArrayObject

Returns

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

withHeaders

public withHeaders(ArrayObject $headers): ApiPlatform\OpenApi\Model\Response

Parameters

headersArrayObject

Returns

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

public withLinks(ArrayObject $links): ApiPlatform\OpenApi\Model\Response

Parameters

linksArrayObject

Returns

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