Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php |
||
19 | 10 | public function __construct($url, $message = '', \DateTime $retryDate = null, $code = 0, \Exception $previous = null) |
|
20 | { |
||
21 | 10 | parent::__construct($url, $message, $code, $previous); |
|
22 | |||
23 | 10 | if ($retryDate instanceof \DateTime && $retryDate < new \DateTime()) { |
|
24 | throw new \InvalidArgumentException('$retryDate cannot be in the past'); |
||
25 | } |
||
26 | |||
27 | 10 | $this->retryDate = $retryDate; |
|
28 | 10 | } |
|
29 | |||
38 |