Api Platform conference
Register now
References License
API Platform Conference
September 19-20, 2024 | Lille & online

The international conference on the API Platform Framework

API Platform Conference 2024: meet the best PHP, JavaScript and API experts

Learn more about the event, register for the conference, and get ready for two days of inspiration, ideas, and knowledge-sharing with our incredible lineup of renowned specialists and advocates.

Register now
Reference
C
Class

ApiPlatform\OpenApi\Model\License

class ApiPlatform\OpenApi\Model\License
{
    public __construct(string $name, null|string $url, null|string $identifier)
    public getName(): string
    public getUrl(): string
    public getIdentifier(): string
    public withName(string $name): ApiPlatform\OpenApi\Model\License
    public withUrl(null|string $url): ApiPlatform\OpenApi\Model\License
    public withIdentifier(null|string $identifier): ApiPlatform\OpenApi\Model\License
    public withExtensionProperty(string $key, $value)
    public getExtensionProperties(): array
}

Methods

__construct

public __construct(string $name, null|string $url, null|string $identifier)

Parameters

namestring
urlstring
identifierstring

getName

public getName(): string

Returns

string

getUrl

public getUrl(): string

Returns

string

getIdentifier

public getIdentifier(): string

Returns

string

withName

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

Parameters

namestring

Returns

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

withUrl

public withUrl(null|string $url): ApiPlatform\OpenApi\Model\License

Parameters

urlstring

Returns

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

withIdentifier

public withIdentifier(null|string $identifier): ApiPlatform\OpenApi\Model\License

Parameters

identifierstring

Returns

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