Open Journal Systems
3.3.0
CurlVersion.php
1
<?php
2
3
namespace
Guzzle\Http\Curl
;
4
8
class
CurlVersion
9
{
11
protected
$version
;
12
14
protected
static
$instance
;
15
17
protected
$userAgent
;
18
22
public
static
function
getInstance
()
23
{
24
if
(!self::$instance) {
25
self::$instance =
new
self
();
26
}
27
28
return
self::$instance
;
29
}
30
36
public
function
getAll
()
37
{
38
if
(!$this->version) {
39
$this->version = curl_version();
40
}
41
42
return
$this->version
;
43
}
44
60
public
function
get
($type)
61
{
62
$version
= $this->
getAll
();
63
64
return
isset(
$version
[$type]) ?
$version
[$type] :
false
;
65
}
66
}
Guzzle\Http\Curl\CurlVersion\getInstance
static getInstance()
Definition:
CurlVersion.php:28
Guzzle\Http\Curl
Definition:
CurlHandle.php:3
Guzzle\Http\Curl\CurlVersion\$userAgent
$userAgent
Definition:
CurlVersion.php:23
Guzzle\Http\Curl\CurlVersion
Definition:
CurlVersion.php:8
Guzzle\Http\Curl\CurlVersion\$instance
static $instance
Definition:
CurlVersion.php:18
Guzzle\Http\Curl\CurlVersion\getAll
getAll()
Definition:
CurlVersion.php:42
Guzzle\Http\Curl\CurlVersion\$version
$version
Definition:
CurlVersion.php:14
plugins
paymethod
paypal
lib
vendor
guzzle
guzzle
src
Guzzle
Http
Curl
CurlVersion.php
Generated on Fri Aug 28 2020 14:51:23 for Open Journal Systems by
1.8.17