AwsInspector\Helper\Curl::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $url, array $headers = [], Connection $connection = null, integer $maxTime = 5 )
$url string
$headers array
$connection AwsInspector\Ssh\Connection
$maxTime integer
    public function __construct($url, $headers = [], \AwsInspector\Ssh\Connection $connection = null, $maxTime = 5)
    {
        $this->url = $url;
        $this->headers = $headers;
        $this->connection = is_null($connection) ? new \AwsInspector\Ssh\LocalConnection() : $connection;
        $this->maxTime = $maxTime;
    }