\cURLCollection

Summary

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

Properties

$data

$data : array

Type

array — Collection

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