PhpParser\NodeAbstract::__construct PHP Метод

__construct() публичный Метод

Creates a Node.
public __construct ( array $attributes = [] )
$attributes array Array of attributes
    public function __construct(array $attributes = array())
    {
        $this->attributes = $attributes;
    }

Usage Example

Пример #1
0
 /**
  * Constructs a function call argument node.
  *
  * @param Expr $value Value to pass
  * @param bool $byRef Whether to pass by ref
  * @param bool $unpack Whether to unpack the argument
  * @param array $attributes Additional attributes
  */
 public function __construct(Expr $value, $byRef = false, $unpack = false, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->value = $value;
     $this->byRef = $byRef;
     $this->unpack = $unpack;
 }
All Usage Examples Of PhpParser\NodeAbstract::__construct