2017-01-14 17:36:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
|
|
*
|
|
|
|
* (c) Nelmio
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Nelmio\ApiDocBundle\Annotation;
|
|
|
|
|
|
|
|
use Swagger\Annotations\AbstractAnnotation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Annotation
|
|
|
|
*/
|
|
|
|
final class Model extends AbstractAnnotation
|
|
|
|
{
|
2017-06-26 10:34:42 +02:00
|
|
|
/** {@inheritdoc} */
|
2017-06-13 13:34:26 +02:00
|
|
|
public static $_types = [
|
|
|
|
'type' => 'string',
|
|
|
|
'groups' => '[string]',
|
2019-06-01 15:31:09 +02:00
|
|
|
'options' => '[mixed]',
|
2017-06-13 13:34:26 +02:00
|
|
|
];
|
2017-12-22 17:42:18 +00:00
|
|
|
|
2017-01-14 17:36:56 +01:00
|
|
|
public static $_required = ['type'];
|
2017-12-22 17:42:18 +00:00
|
|
|
|
2017-01-14 17:36:56 +01:00
|
|
|
public static $_parents = [
|
|
|
|
'Swagger\Annotations\Parameter',
|
|
|
|
'Swagger\Annotations\Response',
|
|
|
|
];
|
|
|
|
|
2017-06-13 13:34:26 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2017-01-14 17:36:56 +01:00
|
|
|
public $type;
|
2017-06-13 13:34:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
public $groups;
|
2019-06-01 15:31:09 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var mixed[]
|
|
|
|
*/
|
|
|
|
public $options;
|
2017-01-14 17:36:56 +01:00
|
|
|
}
|