No Description

Cast.php 555B

123456789101112131415161718192021222324252627
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Node\Expr;
  3. use PhpParser\Node\Expr;
  4. abstract class Cast extends Expr
  5. {
  6. /** @var Expr Expression */
  7. public $expr;
  8. /**
  9. * Constructs a cast node.
  10. *
  11. * @param Expr $expr Expression
  12. * @param array $attributes Additional attributes
  13. */
  14. public function __construct(Expr $expr, array $attributes = []) {
  15. $this->attributes = $attributes;
  16. $this->expr = $expr;
  17. }
  18. public function getSubNodeNames() : array {
  19. return ['expr'];
  20. }
  21. }