Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
58 | public function passes($attribute, $value): bool |
||
59 | { |
||
60 | try { |
||
61 | $date = $this->createDate($value); |
||
62 | |||
63 | return $date->between($this->start, $this->end, $this->orEquals); |
||
64 | } catch (InvalidDate $exception) { |
||
65 | $this->message = $exception->getMessage(); |
||
66 | |||
67 | return false; |
||
68 | } |
||
69 | } |
||
70 | |||
76 |