| 1 | <?php |
||
| 8 | class Fake extends \PhpParser\Node\Scalar |
||
| 9 | { |
||
| 10 | /** @var mixed */ |
||
| 11 | public $value; |
||
| 12 | |||
| 13 | /** @var mixed */ |
||
| 14 | public $type; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Constructs a fake node. |
||
| 18 | * |
||
| 19 | * @param mixed $value Value of the Node |
||
| 20 | * @param mixed $type Type of the node |
||
| 21 | * @param array $attributes Additional attributes |
||
| 22 | */ |
||
| 23 | public function __construct($value, $type, array $attributes = array()) |
||
| 24 | { |
||
| 25 | parent::__construct($attributes); |
||
| 26 | |||
| 27 | $this->value = $value; |
||
| 28 | $this->type = $type; |
||
| 29 | } |
||
| 30 | |||
| 31 | //@codeCoverageIgnoreStart |
||
| 32 | /** |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function getSubNodeNames(): array |
||
| 39 | //@codeCoverageIgnoreEnd |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Gets the type of the node. |
||
| 43 | * |
||
| 44 | * @return string Type of the node |
||
| 45 | */ |
||
| 46 | public function getType(): string |
||
| 50 | } |
||
| 51 |