| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 69.23% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class Delay |
||
| 22 | { |
||
| 23 | /** @var int * */ |
||
| 24 | private $delay; |
||
| 25 | |||
| 26 | /** @param int $delay */ |
||
| 27 | 6 | public function __construct($delay) |
|
| 28 | { |
||
| 29 | 6 | $this->ensureIsValidDelay($delay); |
|
| 30 | 6 | $this->delay = $delay; |
|
| 31 | 6 | } |
|
| 32 | |||
| 33 | /** @return \Mcustiel\Phiremock\Domain\Options\Delay */ |
||
| 34 | public static function createDefault() |
||
| 37 | } |
||
| 38 | |||
| 39 | /** @return int */ |
||
| 40 | 6 | public function asInt() |
|
| 41 | { |
||
| 42 | 6 | return $this->delay; |
|
| 43 | } |
||
| 44 | |||
| 45 | 6 | private function ensureIsValidDelay($delay) |
|
| 52 | } |
||
| 53 | 6 | } |
|
| 55 |