interface IProxy (View source)

All page factories must implement this interface.

Methods

setClassName(string $class_name)

Sets class name, used inside the proxy.

mixed
getObject()

Returns class instance, that was placed inside a proxy.

mixed
__get(string $property)

Proxies read access for properties to the sub-object.

void
__set(string $property, mixed $value)

Proxies write access for properties to the sub-object.

mixed
__call(string $method, array $arguments)

Proxies all methods to sub-object.

Expectation
shouldReceive(string $name)

No description

Details

IProxy setClassName(string $class_name)

Sets class name, used inside the proxy.

Parameters

string $class_name Class name to proxy.

Return Value

IProxy

mixed getObject()

Returns class instance, that was placed inside a proxy.

Return Value

mixed

Exceptions

ElementNotFoundException When element wasn't found on the page.

mixed __get(string $property)

Proxies read access for properties to the sub-object.

Parameters

string $property Property to proxy.

Return Value

mixed

void __set(string $property, mixed $value)

Proxies write access for properties to the sub-object.

Parameters

string $property Property to proxy.
mixed $value Property value.

Return Value

void

mixed __call(string $method, array $arguments)

Proxies all methods to sub-object.

Parameters

string $method Method to proxy.
array $arguments Method arguments.

Return Value

mixed

Exceptions

ElementException When sub-object doesn't have a specified method.

Expectation shouldReceive(string $name)

Parameters

string $name

Return Value

Expectation