Dragos Protung b4c3dcd6ae Added support for @Security annotations (#1201)
* Added support for `@Security` annotations

* Don't output empty tag and security if none defined
2018-01-25 21:11:34 +01:00

33 lines
561 B
PHP

<?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
*/
class Security extends AbstractAnnotation
{
/** {@inheritdoc} */
public static $_types = [
'name' => 'string',
];
public static $_required = ['name'];
/**
* @var string
*/
public $name;
}