PHP Класс Eloquent\Phony\Stub\Answer\CallRequest

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( callable $callback, Arguments $arguments, boolean $prefixSelf, boolean $suffixArgumentsObject, boolean $suffixArguments ) Construct a call request.
arguments ( ) : Arguments Get the hard-coded arguments.
callback ( ) : callable Get the callback.
finalArguments ( object $self, Arguments $arguments ) : Arguments Get the final arguments.
prefixSelf ( ) : boolean Returns true if the self value should be prefixed to the final arguments.
suffixArguments ( ) : boolean Returns true if the incoming arguments should be appended to the final arguments.
suffixArgumentsObject ( ) : boolean Returns true if the incoming arguments should be appended to the final arguments as an object.

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

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

Construct a call request.
public __construct ( callable $callback, Arguments $arguments, boolean $prefixSelf, boolean $suffixArgumentsObject, boolean $suffixArguments )
$callback callable The callback.
$arguments Eloquent\Phony\Call\Arguments The arguments.
$prefixSelf boolean True if the self value should be prefixed.
$suffixArgumentsObject boolean True if the arguments object should be appended.
$suffixArguments boolean True if the arguments should be appended individually.

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

Get the hard-coded arguments.
public arguments ( ) : Arguments
Результат Eloquent\Phony\Call\Arguments The hard-coded arguments.

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

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

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

Get the final arguments.
public finalArguments ( object $self, Arguments $arguments ) : Arguments
$self object The self value.
$arguments Eloquent\Phony\Call\Arguments The incoming arguments.
Результат Eloquent\Phony\Call\Arguments The final arguments.

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

Returns true if the self value should be prefixed to the final arguments.
public prefixSelf ( ) : boolean
Результат boolean True if the self value should be prefixed.

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

Returns true if the incoming arguments should be appended to the final arguments.
public suffixArguments ( ) : boolean
Результат boolean True if arguments should be appended.

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

Returns true if the incoming arguments should be appended to the final arguments as an object.
public suffixArgumentsObject ( ) : boolean
Результат boolean True if arguments object should be appended.