Secure.php 339 B

123456789101112131415161718
  1. <?php
  2. namespace Doctrine\Tests\Common\Annotations\Fixtures\Annotation;
  3. /** @Annotation */
  4. class Secure
  5. {
  6. private $roles;
  7. public function __construct(array $values)
  8. {
  9. if (is_string($values['value'])) {
  10. $values['value'] = array($values['value']);
  11. }
  12. $this->roles = $values['value'];
  13. }
  14. }