Passed
Branch master (114a3b)
by
unknown
04:22
created

RequestOptions::__construct()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 3
eloc 4
nc 3
nop 1
1
<?php
2
/**
3
 * Class RequestOptions
4
 *
5
 * @filesource   RequestOptions.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;
14
15
use chillerlan\Traits\{Container, ContainerInterface};
16
17
/**
18
 * @property string $user_agent
19
 * @property int    $timeout
20
 * @property array  $curl_options
21
 * @property string $ca_info
22
 * @property int    $max_redirects
23
 */
24
class RequestOptions implements ContainerInterface{
25
	use Container;
26
27
	/**
28
	 * @var string
29
	 */
30
	public $user_agent = 'chillerLAN-php-curl';
31
32
	/**
33
	 * @var int
34
	 */
35
	public $timeout = 10;
36
37
	/**
38
	 * options for each curl instance
39
	 *
40
	 * @var array
41
	 */
42
	public $curl_options = [];
43
44
	/**
45
	 * CA Root Certificates for use with CURL/SSL
46
	 *
47
	 * @var string
48
	 * @link https://curl.haxx.se/ca/cacert.pem
49
	 */
50
	public $ca_info = null;
51
52
	/**
53
	 * @var int
54
	 */
55
	public $max_redirects = 0;
56
57
}
58