1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-13 09:57:25 +01:00
PHP-Parser/lib/PHPParser/Node/Expr/ArrayDimFetch.php

25 lines
756 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
/**
* @property PHPParser_Node_Expr $var Variable
2011-06-05 18:40:04 +02:00
* @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 array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $var, PHPParser_Node_Expr $dim = null, array $attributes = array()) {
parent::__construct(
array(
'var' => $var,
'dim' => $dim
),
$attributes
);
}
2011-06-05 18:40:04 +02:00
}