1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php declare(strict_types=1);
- namespace PhpParser\Node\Expr;
- use PhpParser\Node\Expr;
- 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;
-
- public Expr $expr;
-
- public int $type;
-
- 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';
- }
- }
|