Passed
Branch master (72025d)
by
unknown
02:34 queued 11s
created

Response::__get()   B

Complexity

Conditions 7
Paths 7

Size

Total Lines 20
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 20
rs 8.2222
cc 7
eloc 16
nc 7
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