Library
Interface

Library\Object\InvokableInterface

interface InvokableInterface

Magic handling of properties access interface

Methods

mixed __call(string $name, array $arguments)

Magic handler when calling a non-existing method on an object

static mixed __callStatic(string $name, array $arguments)

Magic handler when calling a non-eixsting method statically on an object

mixed __get(string $name)

Magic getter

InvokableInterface __set(string $name, mixed $value)

Magic setter

bool __isset(string $name)

Magic checker

InvokableInterface __unset(string $name)

Magic unsetter

Details

at line 45
public mixed __call(string $name, array $arguments)

Magic handler when calling a non-existing method on an object

Magic method handling getProp(default), setProp(value), unsetProp(), issetProp() or resetProp() ; it may dispatches to the corresponding defined magic method.

Parameters

string $name The non-existing method name called on the object
array $arguments The arguments array passed calling the method

Return Value

mixed Must return the result of a magic method, or nothing if nothing can be done

See also

<http://www.php.net/manual/en/language.oop5.overloading.php>

at line 58
static public mixed __callStatic(string $name, array $arguments)

Magic handler when calling a non-eixsting method statically on an object

Magic static method handling getProp(default), setProp(value), unsetProp(), issetProp() or resetProp() ; it may dispatches to the corresponding defined magic method.

Parameters

string $name The non-existing method name called on the object
array $arguments The arguments array passed calling the method

Return Value

mixed Must return the result of a magic method, or nothing if nothing can be done

See also

<http://www.php.net/manual/en/language.oop5.overloading.php>

at line 69
public mixed __get(string $name)

Magic getter

Magic method called when $this->prop is invoked.

Parameters

string $name The name of the property to get

Return Value

mixed This will return the result of a magic method, or nothing if nothing can be done

See also

<http://www.php.net/manual/en/language.oop5.overloading.php>

at line 81
public InvokableInterface __set(string $name, mixed $value)

Magic setter

Magic method called when $this->arg = value is invoked.

Parameters

string $name The name of the property to get
mixed $value The value to set for the property

Return Value

InvokableInterface Returns $this for method chaining

See also

<http://www.php.net/manual/en/language.oop5.overloading.php>

at line 92
public bool __isset(string $name)

Magic checker

Magic method called when isset($this->prop) or empty($this->prop) are invoked.

Parameters

string $name The name of the property to get

Return Value

bool This will return true if the property exists, false otherwise

See also

<http://www.php.net/manual/en/language.oop5.overloading.php>

at line 103
public InvokableInterface __unset(string $name)

Magic unsetter

Magic method called when unset($this->prop) is invoked.

Parameters

string $name The name of the property to get

Return Value

InvokableInterface Returns $this for method chaining

See also

<http://www.php.net/manual/en/language.oop5.overloading.php>