final class IgnoreAnnotation in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php \Doctrine\Common\Annotations\Annotation\IgnoreAnnotation
Annotation that can be used to signal to the parser to ignore specific annotations during the parsing process.
@author Johannes M. Schmitt <schmittjoh@gmail.com>
Hierarchy
- class \Doctrine\Common\Annotations\Annotation\IgnoreAnnotation
Expanded class hierarchy of IgnoreAnnotation
1 file declares its use of IgnoreAnnotation
- AnnotationReader.php in modules/
providers/ service_container_annotation_discovery/ lib/ Doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php
File
- modules/
providers/ service_container_annotation_discovery/ lib/ Doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ Annotation/ IgnoreAnnotation.php, line 29
Namespace
Doctrine\Common\Annotations\AnnotationView source
final class IgnoreAnnotation {
/**
* @var array
*/
public $names;
/**
* Constructor.
*
* @param array $values
*
* @throws \RuntimeException
*/
public function __construct(array $values) {
if (is_string($values['value'])) {
$values['value'] = array(
$values['value'],
);
}
if (!is_array($values['value'])) {
throw new \RuntimeException(sprintf('@IgnoreAnnotation expects either a string name, or an array of strings, but got %s.', json_encode($values['value'])));
}
$this->names = $values['value'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IgnoreAnnotation:: |
public | property | ||
IgnoreAnnotation:: |
public | function | Constructor. |