InlineHTML.php 534 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace PhpParser\Node\Stmt;
  3. use PhpParser\Node\Stmt;
  4. class InlineHTML extends Stmt
  5. {
  6. /** @var string String */
  7. public $value;
  8. /**
  9. * Constructs an inline HTML node.
  10. *
  11. * @param string $value String
  12. * @param array $attributes Additional attributes
  13. */
  14. public function __construct($value, array $attributes = array()) {
  15. parent::__construct($attributes);
  16. $this->value = $value;
  17. }
  18. public function getSubNodeNames() {
  19. return array('value');
  20. }
  21. }