class DoctrineArgument
@phpstan-type ValueType = DoctrineAnnotation|IdentifierTypeNode|DoctrineArray|ConstExprNode
Hierarchy
- class \PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine\DoctrineArgument implements \PHPStan\PhpDocParser\Ast\Node uses \PHPStan\PhpDocParser\Ast\NodeAttributes
Expanded class hierarchy of DoctrineArgument
2 files declare their use of DoctrineArgument
- AnnotationHelper.php in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Helpers/ AnnotationHelper.php - Printer.php in vendor/
phpstan/ phpdoc-parser/ src/ Printer/ Printer.php
File
-
vendor/
phpstan/ phpdoc-parser/ src/ Ast/ PhpDoc/ Doctrine/ DoctrineArgument.php, line 13
Namespace
PHPStan\PhpDocParser\Ast\PhpDoc\DoctrineView source
class DoctrineArgument implements Node {
use NodeAttributes;
/** @var IdentifierTypeNode|null */
public $key;
/** @var ValueType */
public $value;
/**
* @param ValueType $value
*/
public function __construct(?IdentifierTypeNode $key, $value) {
$this->key = $key;
$this->value = $value;
}
public function __toString() : string {
if ($this->key === null) {
return (string) $this->value;
}
return $this->key . '=' . $this->value;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
DoctrineArgument::$key | public | property | @var IdentifierTypeNode|null | |
DoctrineArgument::$value | public | property | @var ValueType | |
DoctrineArgument::__construct | public | function | * | |
DoctrineArgument::__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 | * |