PHP Class Eloquent\Phony\Mock\Method\WrappedCustomMethod

Inheritance: extends AbstractWrappedMethod
Show file Open project: eloquent/phony

Public Methods

Method Description
__construct ( callable $customCallback, ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle, Invoker $invoker ) Construct a new wrapped custom method.
customCallback ( ) : ReflectionMethod Get the custom callback.
invokeWith ( Arguments | array $arguments = [] ) : mixed Invoke this object.

Method Details

__construct() public method

Construct a new wrapped custom method.
public __construct ( callable $customCallback, ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle, Invoker $invoker )
$customCallback callable The custom callback.
$method ReflectionMethod The method.
$handle Eloquent\Phony\Mock\Handle\Handle The handle.
$invoker Eloquent\Phony\Invocation\Invoker The invoker to use.

customCallback() public method

Get the custom callback.
public customCallback ( ) : ReflectionMethod
return ReflectionMethod The custom callback.

invokeWith() public method

This method supports reference parameters.
public invokeWith ( Arguments | array $arguments = [] ) : mixed
$arguments Eloquent\Phony\Call\Arguments | array The arguments.
return mixed The result of invocation.