Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
18 | 9 | public function __construct(AbstractAdapter $source, AbstractAdapter $destination, $file, $progress) |
|
19 | { |
||
20 | 9 | $this->source = $source; |
|
21 | 9 | $this->destination = $destination; |
|
22 | 9 | $this->file = $file; |
|
23 | |||
24 | 9 | $progress = (int)$progress; |
|
25 | 9 | if ($progress < 0) { |
|
26 | 1 | $progress = 0; |
|
27 | } |
||
28 | 9 | if ($progress > 100) { |
|
29 | 1 | $progress = 100; |
|
30 | } |
||
31 | 9 | $this->progress = $progress; |
|
32 | 9 | } |
|
33 | |||
54 |