This repository has been archived on 2025-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dumbo/vendor/nikic/php-parser/lib/PHPParser/Node/Expr/Include.php
2014-11-25 16:42:40 +01:00

30 lines
829 B
PHP

<?php
/**
* @property PHPParser_Node_Expr $expr Expression
* @property int $type Type of include
*/
class PHPParser_Node_Expr_Include extends PHPParser_Node_Expr
{
const TYPE_INCLUDE = 1;
const TYPE_INCLUDE_ONCE = 2;
const TYPE_REQUIRE = 3;
const TYPE_REQUIRE_ONCE = 4;
/**
* Constructs an include node.
*
* @param PHPParser_Node_Expr $expr Expression
* @param int $type Type of include
* @param array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $expr, $type, array $attributes = array()) {
parent::__construct(
array(
'expr' => $expr,
'type' => $type
),
$attributes
);
}
}