Passed
Branch master (72025d)
by
unknown
02:41
created

Response::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 2
eloc 8
nc 2
nop 1
1
<?php
2
/**
3
 * Class Response
4
 *
5
 * @filesource   Response.php
6
 * @created      15.02.2016
7
 * @package      chillerlan\TinyCurl
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2016 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\TinyCurl\Response;
14
15
class Response extends ResponseAbstract{
16
17
	/**
18
	 * Fills self::$response_body and calls self::getInfo()
19
	 */
20
	protected function exec(){
21
		curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, [$this, 'headerLine']);
22
		$this->response_body = curl_exec($this->curl);
23
		$this->getInfo();
24
	}
25
26
}
27