2011-06-05 18:40:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property array $parts Encaps list
|
|
|
|
*/
|
|
|
|
class PHPParser_Node_Scalar_Encapsed extends PHPParser_Node_Scalar
|
|
|
|
{
|
2011-08-09 14:55:45 +02:00
|
|
|
/**
|
|
|
|
* Constructs an encapsed string node.
|
|
|
|
*
|
2012-04-29 23:32:09 +02:00
|
|
|
* @param array $parts Encaps list
|
|
|
|
* @param array $attributes Additional attributes
|
2011-08-09 14:55:45 +02:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct(array $parts = array(), array $attributes = array()) {
|
2011-08-09 14:55:45 +02:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'parts' => $parts
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-08-09 14:55:45 +02:00
|
|
|
);
|
|
|
|
}
|
2011-06-05 18:40:04 +02:00
|
|
|
}
|