Reference
C
Class

ApiPlatform\OpenApi\Model\MediaType

class ApiPlatform\OpenApi\Model\MediaType
{
    public __construct(null|ArrayObject $schema, $example, null|ArrayObject $examples, null|ApiPlatform\OpenApi\Model\Encoding $encoding)
    public getSchema(): ArrayObject
    public getExample()
    public getExamples(): ArrayObject
    public getEncoding(): ApiPlatform\OpenApi\Model\Encoding
    public withSchema(ArrayObject $schema): ApiPlatform\OpenApi\Model\MediaType
    public withExample($example): ApiPlatform\OpenApi\Model\MediaType
    public withExamples(ArrayObject $examples): ApiPlatform\OpenApi\Model\MediaType
    public withEncoding(ApiPlatform\OpenApi\Model\Encoding $encoding): ApiPlatform\OpenApi\Model\MediaType
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}
class ApiPlatform\OpenApi\Model\MediaType
{
    public __construct(null|ArrayObject $schema, $example, null|ArrayObject $examples, null|ApiPlatform\OpenApi\Model\Encoding $encoding)
    public getSchema(): ArrayObject
    public getExample()
    public getExamples(): ArrayObject
    public getEncoding(): ApiPlatform\OpenApi\Model\Encoding
    public withSchema(ArrayObject $schema): ApiPlatform\OpenApi\Model\MediaType
    public withExample($example): ApiPlatform\OpenApi\Model\MediaType
    public withExamples(ArrayObject $examples): ApiPlatform\OpenApi\Model\MediaType
    public withEncoding(ApiPlatform\OpenApi\Model\Encoding $encoding): ApiPlatform\OpenApi\Model\MediaType
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(null|ArrayObject $schema, $example, null|ArrayObject $examples, null|ApiPlatform\OpenApi\Model\Encoding $encoding)
public __construct(null|ArrayObject $schema, $example, null|ArrayObject $examples, null|ApiPlatform\OpenApi\Model\Encoding $encoding)

Parameters

schemaArrayObject
example
examplesArrayObject
encodingApiPlatform\OpenApi\Model\Encoding

getSchema

public getSchema(): ArrayObject
public getSchema(): ArrayObject

Returns

ArrayObject

getExample

public getExample()
public getExample()

getExamples

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

Returns

ArrayObject

getEncoding

Returns

ApiPlatform\OpenApi\Model\Encoding

withSchema

public withSchema(ArrayObject $schema): ApiPlatform\OpenApi\Model\MediaType
public withSchema(ArrayObject $schema): ApiPlatform\OpenApi\Model\MediaType

Parameters

schemaArrayObject

Returns

ApiPlatform\OpenApi\Model\MediaType

withExample

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

Parameters

example

Returns

ApiPlatform\OpenApi\Model\MediaType

withExamples

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

Parameters

examplesArrayObject

Returns

ApiPlatform\OpenApi\Model\MediaType

withEncoding

Parameters

encodingApiPlatform\OpenApi\Model\Encoding

Returns

ApiPlatform\OpenApi\Model\MediaType

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