![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/zircote/swagger-php/src/Annotations/ |
<?php declare(strict_types=1); /** * @license Apache 2.0 */ namespace OpenApi\Annotations; use OpenApi\Generator; /** * An object representing a server. * * @see [OAI Server Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-object) * * @Annotation */ class Server extends AbstractAnnotation { /** * An URL to the target host. * * This URL supports Server Variables and may be relative, * to indicate that the host location is relative to the location where the OpenAPI document is being served. * Variable substitutions will be made when a variable is named in {brackets}. * * @var string */ public $url = Generator::UNDEFINED; /** * An optional string describing the host designated by the URL. * * CommonMark syntax may be used for rich text representation. * * @var string */ public $description = Generator::UNDEFINED; /** * A map between a variable name and its value. * * The value is used for substitution in the server's URL template. * * @var ServerVariable[] */ public $variables = Generator::UNDEFINED; /** * @inheritdoc */ public static $_parents = [ OpenApi::class, PathItem::class, Operation::class, Get::class, Post::class, Put::class, Delete::class, Patch::class, Head::class, Options::class, Trace::class, Link::class, ]; /** * @inheritdoc */ public static $_nested = [ ServerVariable::class => ['variables', 'serverVariable'], Attachable::class => ['attachables'], ]; /** * @inheritdoc */ public static $_required = ['url']; /** * @inheritdoc */ public static $_types = [ 'url' => 'string', 'description' => 'string', ]; }