| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace ApiGen\Info\Expr; |
| 4: | |
| 5: | use ApiGen\Info\ExprInfo; |
| 6: | |
| 7: | |
| 8: | class BooleanExprInfo implements ExprInfo |
| 9: | { |
| 10: | public function __construct( |
| 11: | public bool $value, |
| 12: | ) { |
| 13: | } |
| 14: | |
| 15: | |
| 16: | public function toString(): string |
| 17: | { |
| 18: | return $this->value ? 'true' : 'false'; |
| 19: | } |
| 20: | } |
| 21: |