for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class RequestOptions
*
* @filesource RequestOptions.php
* @created 15.02.2016
* @package chillerlan\TinyCurl
* @author Smiley <[email protected]>
* @copyright 2016 Smiley
* @license MIT
*/
namespace chillerlan\TinyCurl;
class RequestOptions{
* @var string
public $user_agent = 'chillerLAN-php-curl';
* @var int
public $timeout = 10;
* options for each curl instance
* @var array
public $curl_options = [];
* CA Root Certificates for use with CURL/SSL
* @link https://curl.haxx.se/ca/cacert.pem
public $ca_info = null;
public $max_redirects = 0;
* RequestOptions constructor.
* @param array $properties
public function __construct(array $properties = []){
foreach($properties as $key => $value){
if(property_exists($this, $key)){
$this->{$key} = $value;
}