class DoctrineArray
Hierarchy
- class \PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine\DoctrineArray implements \PHPStan\PhpDocParser\Ast\Node uses \PHPStan\PhpDocParser\Ast\NodeAttributes
Expanded class hierarchy of DoctrineArray
1 file declares its use of DoctrineArray
- Printer.php in vendor/
phpstan/ phpdoc-parser/ src/ Printer/ Printer.php
File
-
vendor/
phpstan/ phpdoc-parser/ src/ Ast/ PhpDoc/ Doctrine/ DoctrineArray.php, line 9
Namespace
PHPStan\PhpDocParser\Ast\PhpDoc\DoctrineView source
class DoctrineArray implements Node {
use NodeAttributes;
/** @var list<DoctrineArrayItem> */
public $items;
/**
* @param list<DoctrineArrayItem> $items
*/
public function __construct(array $items) {
$this->items = $items;
}
public function __toString() : string {
$items = implode(', ', $this->items);
return '{' . $items . '}';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
DoctrineArray::$items | public | property | @var list<DoctrineArrayItem> | |
DoctrineArray::__construct | public | function | * | |
DoctrineArray::__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 | * |