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

/**
 * @license Apache 2.0
 */

namespace OpenApi\Annotations;

use OpenApi\Generator;

/**
 * Describes a single request body.
 *
 * @see [OAI Request Body Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#requestBodyObject)
 *
 * @Annotation
 */
class RequestBody extends AbstractAnnotation
{
    public $ref = Generator::UNDEFINED;

    /**
     * Request body model name.
     *
     * @var string
     */
    public $request = Generator::UNDEFINED;

    /**
     * A brief description of the parameter.
     *
     * This could contain examples of use.
     *
     * CommonMark syntax may be used for rich text representation.
     *
     * @var string
     */
    public $description = Generator::UNDEFINED;

    /**
     * Determines whether this parameter is mandatory.
     *
     * If the parameter location is "path", this property is required and its value must be true.
     * Otherwise, the property may be included and its default value is false.
     *
     * @var bool
     */
    public $required = Generator::UNDEFINED;

    /**
     * The content of the request body.
     *
     * The key is a media type or media type range and the value describes it. For requests that match multiple keys,
     * only the most specific key is applicable. e.g. text/plain overrides text/*.
     *
     * @var array<MediaType>|JsonContent|XmlContent
     */
    public $content = Generator::UNDEFINED;

    /**
     * @inheritdoc
     */
    public static $_types = [
        'description' => 'string',
        'required' => 'boolean',
        'request' => 'string',
    ];

    public static $_parents = [
        Components::class,
        Delete::class,
        Get::class,
        Head::class,
        Operation::class,
        Options::class,
        Patch::class,
        Post::class,
        Trace::class,
        Put::class,
    ];

    /**
     * @inheritdoc
     */
    public static $_nested = [
        MediaType::class => ['content', 'mediaType'],
        Attachable::class => ['attachables'],
    ];
}

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).