Documentation

License
in package
implements OpenApiAttributeInterface

The attribute may be used in {@see Info::$license} to define a license for the OpenAPI spec.

Interfaces, Classes, Traits and Enums

OpenApiAttributeInterface

Table of Contents

$extension  : array<string|int, mixed>
$name  : string
$url  : string
__construct()  : mixed

Properties

$extension

public array<string|int, mixed> $extension = []

Methods

__construct()

public __construct([string $name = "" ][, string $url = "" ][, array<string|int, Extension$extension = [] ]) : mixed
Parameters
$name : string = ""

The license name used for the API.

$url : string = ""

A URL to the license used for the API. MUST be in the format of a URL.

$extension : array<string|int, Extension> = []

The list of optional extensions.

Return values
mixed

Search results