class Attribute
Same name in this branch
- 11.1.x vendor/phpstan/phpdoc-parser/src/Ast/Attribute.php \PHPStan\PhpDocParser\Ast\Attribute
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php \PhpParser\Node\Attribute
- 11.1.x vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Attribute.php \SlevomatCodingStandard\Helpers\Attribute
- 11.1.x vendor/mck89/peast/lib/Peast/Selector/Node/Part/Attribute.php \Peast\Selector\Node\Part\Attribute
- 11.1.x core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute
Annotation that can be used to signal to the parser to check the attribute type during the parsing process.
@Annotation
Hierarchy
- class \Doctrine\Common\Annotations\Annotation\Attribute
Expanded class hierarchy of Attribute
2 files declare their use of Attribute
- DocParser.php in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php - DocParser.php in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - This class is a near-copy of Doctrine\Common\Annotations\DocParser, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7.
16 string references to 'Attribute'
- Attribute::getType in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Attribute.php - Gets the type of the node.
- AttributeClassLoader::supports in vendor/
symfony/ routing/ Loader/ AttributeClassLoader.php - AttributeDirectoryLoader::supports in vendor/
symfony/ routing/ Loader/ AttributeDirectoryLoader.php - AttributeFileLoader::supports in vendor/
symfony/ routing/ Loader/ AttributeFileLoader.php - claro_preprocess_input in core/
themes/ claro/ claro.theme - Implements template_preprocess_HOOK() for input.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ Annotation/ Attribute.php, line 11
Namespace
Doctrine\Common\Annotations\AnnotationView source
final class Attribute {
/** @var string */
public $name;
/** @var string */
public $type;
/** @var bool */
public $required = false;
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Attribute::$name | public | property | @var string |
Attribute::$required | public | property | @var bool |
Attribute::$type | public | property | @var string |