| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class EvaluatedValue implements EvaluatedValueInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | private $value; |
||
| 14 | |||
| 15 | 4 | public function __construct(bool $value) |
|
| 16 | { |
||
| 17 | 4 | $this->value = $value; |
|
| 18 | 4 | } |
|
| 19 | |||
| 20 | 4 | public function getData(): bool |
|
| 21 | { |
||
| 22 | 4 | return $this->value; |
|
| 23 | } |
||
| 24 | |||
| 25 | 2 | public function createEventIterator(): Iterator |
|
| 26 | { |
||
| 27 | 2 | return $this->createGenerator(); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | private function createGenerator(): Generator |
|
| 33 | 2 | } |
|
| 34 | } |
||
| 35 |