PHP 클래스 Eloquent\Phony\Stub\Answer\CallRequest

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__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.