| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 12 | View Code Duplication | public function __construct(Url $url, $proto = 'HTTP/1.1', $timeout = 10) |
| 33 | { |
||
| 34 | 12 | parent::__construct($url); |
|
| 35 | |||
| 36 | 12 | $this->setTimeout($timeout); |
|
| 37 | 12 | $this->setPath($url->getPath()); |
|
| 38 | 12 | $this->setProtocol($proto); |
|
| 39 | 12 | $this->setQueryString($url->getQueryString()); |
|
| 40 | 12 | $this->reset(); |
|
| 41 | 12 | $this->resetHeaders(); |
|
| 42 | 12 | } |
|
| 43 | |||
| 53 | } |