PHP Class Eloquent\Phony\Mock\Method\WrappedTraitMethod

Inheritance: extends AbstractWrappedMethod
Afficher le fichier Open project: eloquent/phony

Méthodes publiques

Méthode Description
__construct ( ReflectionMethod $callTraitMethod, string $traitName, ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle ) Construct a new wrapped trait method.
callTraitMethod ( ) : ReflectionMethod Get the _callTrait() method.
invokeWith ( Arguments | array $arguments = [] ) : mixed Invoke this object.
traitName ( ) : string Get the trait name.

Method Details

__construct() public méthode

Construct a new wrapped trait method.
public __construct ( ReflectionMethod $callTraitMethod, string $traitName, ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle )
$callTraitMethod ReflectionMethod The _callTrait() method.
$traitName string The trait name.
$method ReflectionMethod The method.
$handle Eloquent\Phony\Mock\Handle\Handle The handle.

callTraitMethod() public méthode

Get the _callTrait() method.
public callTraitMethod ( ) : ReflectionMethod
Résultat ReflectionMethod The _callTrait() method.

invokeWith() public méthode

This method supports reference parameters.
public invokeWith ( Arguments | array $arguments = [] ) : mixed
$arguments Eloquent\Phony\Call\Arguments | array The arguments.
Résultat mixed The result of invocation.

traitName() public méthode

Get the trait name.
public traitName ( ) : string
Résultat string The trait name.