| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 42 | public function __construct($url, $userAgent = '') |
||
| 43 | { |
||
| 44 | if (!empty($userAgent)) { |
||
| 45 | $this->config['headers']['User-Agent'] = $userAgent; |
||
| 46 | } |
||
| 47 | $client = new Client($this->config); |
||
| 48 | $request = $client->request('GET', $url); |
||
| 49 | parent::__construct($request, $userAgent); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |