Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstExprArrayNode.php

class ConstExprArrayNode

Hierarchy

  • class \PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayNode implements \PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode uses \PHPStan\PhpDocParser\Ast\NodeAttributes

Expanded class hierarchy of ConstExprArrayNode

1 file declares its use of ConstExprArrayNode
Printer.php in vendor/phpstan/phpdoc-parser/src/Printer/Printer.php

File

vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayNode.php, line 8

Namespace

PHPStan\PhpDocParser\Ast\ConstExpr
View source
class ConstExprArrayNode implements ConstExprNode {
    use NodeAttributes;
    
    /** @var ConstExprArrayItemNode[] */
    public $items;
    
    /**
     * @param ConstExprArrayItemNode[] $items
     */
    public function __construct(array $items) {
        $this->items = $items;
    }
    public function __toString() : string {
        return '[' . implode(', ', $this->items) . ']';
    }

}

Members

Title Sort descending Modifiers Object type Summary
ConstExprArrayNode::$items public property @var ConstExprArrayItemNode[]
ConstExprArrayNode::__construct public function *
ConstExprArrayNode::__toString public function
NodeAttributes::$attributes private property @var array<string, mixed>
NodeAttributes::getAttribute public function *
NodeAttributes::hasAttribute public function
NodeAttributes::setAttribute public function *

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal