\cURLOptions

Summary

Methods
Properties
Constants
toArray()
set()
has()
get()
remove()
applyTo()
loadCurlConstantsTable()
__call()
No public properties found
No constants found
No protected methods found
$data
$curlConstantsTable
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : array

Type

array — Collection

$curlConstantsTable

$curlConstantsTable : array

Type

array — Array of cURL constants required for intelligent setters

Methods

toArray()

toArray() : array

Converts current object to array

Returns

array

set()

set(mixed  $key, mixed  $value = null) : self

Sets value

Parameters

mixed $key

Key

mixed $value

Value

Returns

self

has()

has(mixed  $key) : boolean

Checks if key does exist

Parameters

mixed $key

Key

Returns

boolean —

TRUE if exists, FALSE otherwise

get()

get(mixed  $key) : mixed

Returns value of $key

Parameters

mixed $key

Key

Throws

\cURL\Exception

Key does not exist

Returns

mixed —

Value of key

remove()

remove(mixed  $key) : self

Removes key

Parameters

mixed $key

Key to remove

Returns

self

applyTo()

applyTo(\cURL\Request  $request) : self

Applies options to Request object

Parameters

\cURL\Request $request

Returns

self

loadCurlConstantsTable()

loadCurlConstantsTable() : void

Prepares array for intelligent setters

__call()

__call(string  $name, array  $args) : self

Intelligent setters

Parameters

string $name

Function name

array $args

Arguments

Throws

\cURL\Exception

Invalid CURLOPT_ constant has been specified

Returns

self