Encapsed.php 512 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @property array $parts Encaps list
  4. */
  5. class PHPParser_Node_Scalar_Encapsed extends PHPParser_Node_Scalar
  6. {
  7. /**
  8. * Constructs an encapsed string node.
  9. *
  10. * @param array $parts Encaps list
  11. * @param array $attributes Additional attributes
  12. */
  13. public function __construct(array $parts = array(), array $attributes = array()) {
  14. parent::__construct(
  15. array(
  16. 'parts' => $parts
  17. ),
  18. $attributes
  19. );
  20. }
  21. }