Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
46 | 42 | public function __construct(LoopModelInterface $loop, $interval, callable $callback, $periodic = false, $data = null) |
|
47 | { |
||
48 | 42 | if ($interval < self::MIN_INTERVAL) |
|
49 | { |
||
50 | 3 | $interval = self::MIN_INTERVAL; |
|
51 | } |
||
52 | |||
53 | 42 | $this->loop = $loop; |
|
54 | 42 | $this->interval = (float) $interval; |
|
55 | 42 | $this->callback = $callback; |
|
56 | 42 | $this->periodic = (bool) $periodic; |
|
57 | 42 | $this->data = $data; |
|
58 | 42 | } |
|
59 | |||
147 |