コード例 #1
0
ファイル: Encapsed.php プロジェクト: qasem2rubik/laravel
 /**
  * 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
ファイル: Encapsed.php プロジェクト: Ingothq/multiarmedbandit
 /**
  * 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);
 }