Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.1755 |
Changes | 0 |
1 | <?php |
||
18 | 3 | public function __construct($uriInsideArchive = null, $wrapper = 'zip', Format $subFormat = null) |
|
19 | { |
||
20 | 3 | if (!is_string($wrapper)) { |
|
21 | throw new \InvalidArgumentException('wrapper argument must be a string'); |
||
22 | } |
||
23 | 3 | if (!is_null($uriInsideArchive) && !is_string($uriInsideArchive)) { |
|
24 | throw new \InvalidArgumentException('uriInsideArchive argument must be a string'); |
||
25 | } |
||
26 | |||
27 | 3 | $this->uriInsideArchive = $uriInsideArchive; |
|
28 | 3 | $this->wrapper = $wrapper; |
|
29 | 3 | $this->subFormat = $subFormat; |
|
30 | 3 | } |
|
31 | |||
55 |