@@ 283-290 (lines=8) @@ | ||
280 | return $this->isValid($url); |
|
281 | } |
|
282 | ||
283 | public function isValidDate(Carbon $carbon): bool |
|
284 | { |
|
285 | if ($carbon->between($this->validFromDate(), $this->expirationDate()) === false) { |
|
286 | return false; |
|
287 | } |
|
288 | ||
289 | return true; |
|
290 | } |
|
291 | ||
292 | public function isSelfSigned(): bool |
|
293 | { |
@@ 136-143 (lines=8) @@ | ||
133 | return $this->expirationDate()->isPast(); |
|
134 | } |
|
135 | ||
136 | public function isValid() |
|
137 | { |
|
138 | if (Carbon::now()->between($this->validFromDate(), $this->expirationDate()) === false) { |
|
139 | return false; |
|
140 | } |
|
141 | ||
142 | return true; |
|
143 | } |
|
144 | ||
145 | public function isValidUntil(Carbon $carbon): bool |
|
146 | { |