PHP Class Eloquent\Phony\Mock\Method\WrappedMagicMethod

Inheritance: extends Eloquent\Phony\Invocation\AbstractWrappedInvocable, implements Eloquent\Phony\Mock\Method\WrappedMethod
Datei anzeigen Open project: eloquent/phony

Protected Properties

Property Type Description
$callMagicMethod
$handle
$isUncallable
$mock
$name

Public Methods

Method Description
__construct ( string $name, ReflectionMethod $callMagicMethod, boolean $isUncallable, Eloquent\Phony\Mock\Handle\Handle $handle ) Construct a new wrapped magic method.
callMagicMethod ( ) : ReflectionMethod Get the method.
handle ( ) : Eloquent\Phony\Mock\Handle\Handle Get the handle.
invokeWith ( Arguments | array $arguments = [] ) : mixed Invoke this object.
isUncallable ( ) : boolean Returns true if uncallable.
mock ( ) : Mock | null Get the mock.
name ( ) : string Get the name.

Method Details

__construct() public method

Construct a new wrapped magic method.
public __construct ( string $name, ReflectionMethod $callMagicMethod, boolean $isUncallable, Eloquent\Phony\Mock\Handle\Handle $handle )
$name string The name.
$callMagicMethod ReflectionMethod The _callMagic() method.
$isUncallable boolean True if the underlying magic method is uncallable.
$handle Eloquent\Phony\Mock\Handle\Handle The handle.

callMagicMethod() public method

Get the method.
public callMagicMethod ( ) : ReflectionMethod
return ReflectionMethod The method.

handle() public method

Get the handle.
public handle ( ) : Eloquent\Phony\Mock\Handle\Handle
return Eloquent\Phony\Mock\Handle\Handle The handle.

invokeWith() public method

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

isUncallable() public method

Returns true if uncallable.
public isUncallable ( ) : boolean
return boolean True if uncallable.

mock() public method

Get the mock.
public mock ( ) : Mock | null
return Mock | null The mock.

name() public method

Get the name.
public name ( ) : string
return string The name.

Property Details

$callMagicMethod protected_oe property

protected $callMagicMethod

$handle protected_oe property

protected $handle

$isUncallable protected_oe property

protected $isUncallable

$mock protected_oe property

protected $mock

$name protected_oe property

protected $name