| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class TimeBefore extends AbstractRule |
||
| 11 | { |
||
| 12 | private \DateTimeImmutable $timeBefore; |
||
| 13 | |||
| 14 | private Utilities\Time $timeUtility; |
||
| 15 | |||
| 16 | public function __construct(string $timeBefore, Utilities\Time $timeUtility = null) |
||
| 17 | { |
||
| 18 | $this->timeUtility = $timeUtility ?? new Utilities\Time(); |
||
| 19 | $this->timeBefore = $this->timeUtility->getImmutableDateTime($timeBefore); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getValue() |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function childCanBeSatisfied(RequestorInterface $requestor = null): bool |
||
| 30 | } |
||
| 31 | } |
||
| 32 |