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

Breadcrumb

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

class Include_

Hierarchy

  • class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
    • class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
      • class \PhpParser\Node\Expr\Include_ extends \PhpParser\Node\Expr

Expanded class hierarchy of Include_

1 file declares its use of Include_
NodeDumper.php in vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php, line 7

Namespace

PhpParser\Node\Expr
View source
class Include_ extends Expr {
    public const TYPE_INCLUDE = 1;
    public const TYPE_INCLUDE_ONCE = 2;
    public const TYPE_REQUIRE = 3;
    public const TYPE_REQUIRE_ONCE = 4;
    
    /** @var Expr Expression */
    public Expr $expr;
    
    /** @var int Type of include */
    public int $type;
    
    /**
     * Constructs an include node.
     *
     * @param Expr $expr Expression
     * @param int $type Type of include
     * @param array<string, mixed> $attributes Additional attributes
     */
    public function __construct(Expr $expr, int $type, array $attributes = []) {
        $this->attributes = $attributes;
        $this->expr = $expr;
        $this->type = $type;
    }
    public function getSubNodeNames() : array {
        return [
            'expr',
            'type',
        ];
    }
    public function getType() : string {
        return 'Expr_Include';
    }

}

Members

Title Sort descending Modifiers Object type Summary
Include_::$expr public property @var Expr Expression
Include_::$type public property @var int Type of include
Include_::getSubNodeNames public function
Include_::getType public function
Include_::TYPE_INCLUDE public constant
Include_::TYPE_INCLUDE_ONCE public constant
Include_::TYPE_REQUIRE public constant
Include_::TYPE_REQUIRE_ONCE public constant
Include_::__construct public function Constructs an include node.

API Navigation

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