PHP Class Eloquent\Phony\Stub\Answer\CallRequest

Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

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

callback() public méthode

Get the callback.
public callback ( ) : callable
Résultat callable The callback.

finalArguments() public méthode

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

prefixSelf() public méthode

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

suffixArguments() public méthode

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

suffixArgumentsObject() public méthode

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