public function Secure::__construct

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/Fixtures/Annotation/Secure.php, line 10

Class

Secure

Namespace

Doctrine\Tests\Common\Annotations\Fixtures\Annotation

Code

public function __construct(array $values) {
  if (is_string($values['value'])) {
    $values['value'] = array(
      $values['value'],
    );
  }
  $this->roles = $values['value'];
}