mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-14 18:16:06 +01:00
26 lines
820 B
PHP
26 lines
820 B
PHP
<?php
|
|
|
|
/**
|
|
* @property PHPParser_Node_Expr $var Variable
|
|
* @property null|PHPParser_Node_Expr $dim Array index / dim
|
|
*/
|
|
class PHPParser_Node_Expr_ArrayDimFetch extends PHPParser_Node_Expr
|
|
{
|
|
/**
|
|
* Constructs an array index fetch node.
|
|
*
|
|
* @param PHPParser_Node_Expr $var Variable
|
|
* @param null|PHPParser_Node_Expr $dim Array index / dim
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct(PHPParser_Node_Expr $var, PHPParser_Node_Expr $dim = null, $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'var' => $var,
|
|
'dim' => $dim
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |