PHP Класс Eloquent\Phony\Mock\Method\WrappedCustomMethod

Наследование: extends AbstractWrappedMethod
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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() публичный Метод

Get the custom callback.
public customCallback ( ) : ReflectionMethod
Результат ReflectionMethod The custom callback.

invokeWith() публичный Метод

This method supports reference parameters.
public invokeWith ( Arguments | array $arguments = [] ) : mixed
$arguments Eloquent\Phony\Call\Arguments | array The arguments.
Результат mixed The result of invocation.