| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 11 | View Code Duplication | public function __construct(Url $url, $proto = 'HTTP/1.1', $timeout = 10) |
| 23 | { |
||
| 24 | 11 | parent::__construct($url); |
|
| 25 | |||
| 26 | 11 | $this->setTimeout($timeout); |
|
| 27 | 11 | $this->setPath($url->getPath()); |
|
| 28 | 11 | $this->setProtocol($proto); |
|
| 29 | 11 | $this->setQueryString($url->getQueryString()); |
|
| 30 | 11 | $this->reset(); |
|
| 31 | 11 | $this->resetHeaders(); |
|
| 32 | 11 | } |
|
| 33 | |||
| 43 | } |