class DoctrineAnnotation
Hierarchy
- class \PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine\DoctrineAnnotation implements \PHPStan\PhpDocParser\Ast\Node uses \PHPStan\PhpDocParser\Ast\NodeAttributes
Expanded class hierarchy of DoctrineAnnotation
2 files declare their use of DoctrineAnnotation
- Printer.php in vendor/
phpstan/ phpdoc-parser/ src/ Printer/ Printer.php - UnusedUsesSniff.php in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Namespaces/ UnusedUsesSniff.php
File
-
vendor/
phpstan/ phpdoc-parser/ src/ Ast/ PhpDoc/ Doctrine/ DoctrineAnnotation.php, line 9
Namespace
PHPStan\PhpDocParser\Ast\PhpDoc\DoctrineView source
class DoctrineAnnotation implements Node {
use NodeAttributes;
/** @var string */
public $name;
/** @var list<DoctrineArgument> */
public $arguments;
/**
* @param list<DoctrineArgument> $arguments
*/
public function __construct(string $name, array $arguments) {
$this->name = $name;
$this->arguments = $arguments;
}
public function __toString() : string {
$arguments = implode(', ', $this->arguments);
return $this->name . '(' . $arguments . ')';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
DoctrineAnnotation::$arguments | public | property | @var list<DoctrineArgument> | |
DoctrineAnnotation::$name | public | property | @var string | |
DoctrineAnnotation::__construct | public | function | * | |
DoctrineAnnotation::__toString | public | function | Overrides Node::__toString | |
NodeAttributes::$attributes | private | property | @var array<string, mixed> | |
NodeAttributes::getAttribute | public | function | * | |
NodeAttributes::hasAttribute | public | function | ||
NodeAttributes::setAttribute | public | function | * |