1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDocParser\Ast\ConstExpr;
4:
5: use PHPStan\PhpDocParser\Ast\NodeAttributes;
6:
7: class ConstExprTrueNode implements ConstExprNode
8: {
9:
10: use NodeAttributes;
11:
12: public function __toString(): string
13: {
14: return 'true';
15: }
16:
17: /**
18: * @param array<string, mixed> $properties
19: */
20: public static function __set_state(array $properties): self
21: {
22: $instance = new self();
23: if (isset($properties['attributes'])) {
24: foreach ($properties['attributes'] as $key => $value) {
25: $instance->setAttribute($key, $value);
26: }
27: }
28: return $instance;
29: }
30:
31: }
32: