__get ( $name )

Default getter. Enables syntax such as $object->method->chained_method();. Also supports $object->key. Matching methods are prioritized over matching keys.

Access

public

Parameters

Parameter

Type

Required

Description

$name

string

Required

The name of the method to execute or key to retrieve.

Returns

Type

Description

mixed

The results of calling the function $name(), or the value of the key $object[$name].

Source

Method defined in utilities/credential.class.php | Toggle source view (4 lines) | View on GitHub

public function __get($name)
{
    return $this[$name];
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback