The EIURI class encapsulates an Eagle-I URI.

 Methods

__construct()

__construct(bool $json_data, $string_uri) 

Parameters

$json_data

bool

$string_uri

Exceptions

\UnexpectedValueException if $json_data does not contain the expected properties

Get the uri

getId() : bool

Returns

bool

Determine whether the uri is null or not

is_null() : bool

Returns

bool

Returns a serialized JSON representation of the object.

json_encode(bool $pretty) : string

Parameters

$pretty

bool

True if output with indentation is desired.

Returns

string

Set the uri

setId($id) 

Parameters

$id

Used by json_encode to properly escape the JSON string.

json_escape($string) : string
Inherited
access protected
inherited_from \EIContainer::json_escape()

Parameters

$string

Returns

string

Used by json_encode($pretty = TRUE) to properly indent the JSON output.

json_indent($cols) : string
Inherited

Returns a serialized JSON representation of the object.

access protected
inherited_from \EIContainer::json_indent()

Parameters

$cols

Returns

string

 Properties

 

$id : string
access private