| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 3 | public function __construct($initial = 0, $total, SyncProgressCallback $callback = null) |
|
| 16 | { |
||
| 17 | 3 | $this->assertValidArguments($initial, $total); |
|
| 18 | 3 | $this->current = (int) $initial; |
|
| 19 | 3 | $this->total = (int) $total; |
|
| 20 | |||
| 21 | 3 | if (isset($callback)) { |
|
| 22 | 3 | $this->callback = $callback; |
|
| 23 | 3 | } |
|
| 24 | 3 | } |
|
| 25 | |||
| 58 |