PHP Class Eloquent\Phony\Stub\Answer\CallRequest

Show file Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

Get the hard-coded arguments.
public arguments ( ) : Arguments
return Eloquent\Phony\Call\Arguments The hard-coded arguments.

callback() public method

Get the callback.
public callback ( ) : callable
return callable The callback.

finalArguments() public method

Get the final arguments.
public finalArguments ( object $self, Arguments $arguments ) : Arguments
$self object The self value.
$arguments Eloquent\Phony\Call\Arguments The incoming arguments.
return Eloquent\Phony\Call\Arguments The final arguments.

prefixSelf() public method

Returns true if the self value should be prefixed to the final arguments.
public prefixSelf ( ) : boolean
return boolean True if the self value should be prefixed.

suffixArguments() public method

Returns true if the incoming arguments should be appended to the final arguments.
public suffixArguments ( ) : boolean
return boolean True if arguments should be appended.

suffixArgumentsObject() public method

Returns true if the incoming arguments should be appended to the final arguments as an object.
public suffixArgumentsObject ( ) : boolean
return boolean True if arguments object should be appended.