| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0175 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 4 | public function __construct($source, CurlerRequest $request, $curlerRolling=null) |
|
| 35 | { |
||
| 36 | 4 | if (!is_resource($source)) { |
|
| 37 | throw new \InvalidArgumentException('Argument $source must be resource'); |
||
| 38 | } |
||
| 39 | 4 | if ($curlerRolling instanceof CurlerRolling) |
|
| 40 | { |
||
| 41 | 3 | $this->curlerRolling = $curlerRolling; |
|
| 42 | } else { |
||
| 43 | 1 | $this->curlerRolling = new CurlerRolling(); |
|
| 44 | } |
||
| 45 | 4 | $this->source = $source; |
|
| 46 | 4 | $this->request = $request; |
|
| 47 | 4 | } |
|
| 73 |