PHP 7.4.33
Preview: PathItem.php Size: 3.51 KB
/var/www/multi-event-cfp.bitkit.dk/httpdocs/vendor/zircote/swagger-php/src/Annotations/PathItem.php
<?php declare(strict_types=1);

/**
 * @license Apache 2.0
 */

namespace OpenApi\Annotations;

use OpenApi\Generator;

/**
 * Describes the operations available on a single path.
 *
 * A Path Item may be empty, due to ACL constraints.
 * The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.
 *
 * @see [OAI Path Item Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#path-item-object)
 *
 * @Annotation
 */
class PathItem extends AbstractAnnotation
{
    /**
     * @see [Using refs](https://swagger.io/docs/specification/using-ref/)
     *
     * @var string
     */
    public $ref = Generator::UNDEFINED;

    /**
     * key for the Path Object (OpenApi->paths array).
     *
     * @var string
     */
    public $path = Generator::UNDEFINED;

    /**
     * An optional, string summary, intended to apply to all operations in this path.
     *
     * @var string
     */
    public $summary = Generator::UNDEFINED;

    /**
     * A definition of a GET operation on this path.
     *
     * @var Get
     */
    public $get = Generator::UNDEFINED;

    /**
     * A definition of a PUT operation on this path.
     *
     * @var Put
     */
    public $put = Generator::UNDEFINED;

    /**
     * A definition of a POST operation on this path.
     *
     * @var Post
     */
    public $post = Generator::UNDEFINED;

    /**
     * A definition of a DELETE operation on this path.
     *
     * @var Delete
     */
    public $delete = Generator::UNDEFINED;

    /**
     * A definition of a OPTIONS operation on this path.
     *
     * @var Options
     */
    public $options = Generator::UNDEFINED;

    /**
     * A definition of a HEAD operation on this path.
     *
     * @var Head
     */
    public $head = Generator::UNDEFINED;

    /**
     * A definition of a PATCH operation on this path.
     *
     * @var Patch
     */
    public $patch = Generator::UNDEFINED;

    /**
     * A definition of a TRACE operation on this path.
     *
     * @var Trace
     */
    public $trace = Generator::UNDEFINED;

    /**
     * An alternative server array to service all operations in this path.
     *
     * @var Server[]
     */
    public $servers = Generator::UNDEFINED;

    /**
     * A list of parameters that are applicable for all the operations described under this path.
     *
     * These parameters can be overridden at the operation level, but cannot be removed there.
     * The list must not include duplicated parameters.
     * A unique parameter is defined by a combination of a name and location.
     * The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object's components/parameters.
     *
     * @var Parameter[]
     */
    public $parameters = Generator::UNDEFINED;

    /**
     * @inheritdoc
     */
    public static $_types = [
        'path' => 'string',
        'summary' => 'string',
    ];

    /**
     * @inheritdoc
     */
    public static $_nested = [
        Get::class => 'get',
        Post::class => 'post',
        Put::class => 'put',
        Delete::class => 'delete',
        Patch::class => 'patch',
        Trace::class => 'trace',
        Head::class => 'head',
        Options::class => 'options',
        Parameter::class => ['parameters'],
        PathParameter::class => ['parameters'],
        Server::class => ['servers'],
        Attachable::class => ['attachables'],
    ];

    /**
     * @inheritdoc
     */
    public static $_parents = [
        OpenApi::class,
    ];
}

Directory Contents

Dirs: 0 × Files: 39
Name Size Perms Modified Actions
26.08 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
806 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.67 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.68 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.13 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
320 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.66 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.17 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.53 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.09 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
314 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
316 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.06 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.05 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.48 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
897 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.20 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
3.16 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.24 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
7.56 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
7.36 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
322 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
8.40 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
318 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
3.51 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
324 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
316 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
952 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
314 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.04 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
3.17 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
12.65 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.90 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.88 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.86 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
1.22 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
318 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
2.34 KB lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
923 B lrw-rw-r-- 2022-04-17 01:42:30
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).