InlineHTML.php 650 B

123456789101112131415161718192021222324252627282930
  1. <?php declare(strict_types=1);
  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(string $value, array $attributes = []) {
  15. parent::__construct($attributes);
  16. $this->value = $value;
  17. }
  18. public function getSubNodeNames() : array {
  19. return ['value'];
  20. }
  21. public function getType() : string {
  22. return 'Stmt_InlineHTML';
  23. }
  24. }