예제 #1
0
 /**
  * Constructs an encapsed string node.
  *
  * @param array $parts      Encaps list
  * @param array $attributes Additional attributes
  */
 public function __construct(array $parts, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->parts = $parts;
 }
예제 #2
0
 /**
  * Constructs a magic constant node.
  *
  * @param array $attributes Additional attributes
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct(array(), $attributes);
 }
예제 #3
0
 /**
  * Constructs an integer number scalar node.
  *
  * @param int   $value      Value of the number
  * @param array $attributes Additional attributes
  */
 public function __construct($value = 0, array $attributes = array())
 {
     parent::__construct(null, $attributes);
     $this->value = $value;
 }
예제 #4
0
파일: DNumber.php 프로젝트: ck-1/PHP-Parser
 /**
  * Constructs a float number scalar node.
  *
  * @param float $value      Value of the number
  * @param array $attributes Additional attributes
  */
 public function __construct($value = 0.0, array $attributes = array())
 {
     parent::__construct(array('value' => $value), $attributes);
 }
예제 #5
0
파일: Fake.php 프로젝트: ovr/phpsa
 /**
  * Constructs a fake node.
  *
  * @param mixed $value      Value of the Node
  * @param mixed $type      Type of the node
  * @param array $attributes Additional attributes
  */
 public function __construct($value, $type, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->value = $value;
     $this->type = $type;
 }
예제 #6
0
 /**
  * Constructs an encapsed string node.
  *
  * @param array $parts      Encaps list
  * @param array $attributes Additional attributes
  */
 public function __construct(array $parts = array(), array $attributes = array())
 {
     parent::__construct(array('parts' => $parts), $attributes);
 }