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
파일: Arg.php 프로젝트: saj696/pipe
 /**
  * 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