@@ 284-291 (lines=8) @@ | ||
281 | return $this->isValid($url); |
|
282 | } |
|
283 | ||
284 | public function isValidDate(Carbon $carbon): bool |
|
285 | { |
|
286 | if ($carbon->between($this->validFromDate(), $this->expirationDate()) === false) { |
|
287 | return false; |
|
288 | } |
|
289 | ||
290 | return true; |
|
291 | } |
|
292 | ||
293 | public function isSelfSigned(): bool |
|
294 | { |
@@ 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 | { |