PHP Class Eloquent\Phony\Mock\Method\WrappedParentMethod

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

Public Methods

Method Description
__construct ( ReflectionMethod $callParentMethod, ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle ) Construct a new wrapped parent method.
callParentMethod ( ) : ReflectionMethod Get the _callParent() method.
invokeWith ( Arguments | array $arguments = [] ) : mixed Invoke this object.

Method Details

__construct() public method

Construct a new wrapped parent method.
public __construct ( ReflectionMethod $callParentMethod, ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle )
$callParentMethod ReflectionMethod The _callParent() method.
$method ReflectionMethod The method.
$handle Eloquent\Phony\Mock\Handle\Handle The handle.

callParentMethod() public method

Get the _callParent() method.
public callParentMethod ( ) : ReflectionMethod
return ReflectionMethod The _callParent() method.

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.