18 lines
339 B
PHP
18 lines
339 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Common\Annotations\Fixtures\Annotation;
|
|
|
|
/** @Annotation */
|
|
class Secure
|
|
{
|
|
private $roles;
|
|
|
|
public function __construct(array $values)
|
|
{
|
|
if (is_string($values['value'])) {
|
|
$values['value'] = array($values['value']);
|
|
}
|
|
|
|
$this->roles = $values['value'];
|
|
}
|
|
} |