PHP Class Eloquent\Phony\Mock\Method\AbstractWrappedMethod

Inheritance: extends Eloquent\Phony\Invocation\AbstractWrappedInvocable, implements Eloquent\Phony\Mock\Method\WrappedMethod
ファイルを表示 Open project: eloquent/phony Class Usage Examples

Protected Properties

Property Type Description
$handle
$method
$mock
$name

Public Methods

Method Description
__construct ( ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle ) Construct a new wrapped method.
handle ( ) : Eloquent\Phony\Mock\Handle\Handle Get the handle.
method ( ) : ReflectionMethod Get the method.
mock ( ) : Eloquent\Phony\Mock\Mock | null Get the mock.
name ( ) : string Get the name.

Method Details

__construct() public method

Construct a new wrapped method.
public __construct ( ReflectionMethod $method, Eloquent\Phony\Mock\Handle\Handle $handle )
$method ReflectionMethod The method.
$handle Eloquent\Phony\Mock\Handle\Handle The handle.

handle() public method

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

method() public method

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

mock() public method

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

name() public method

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

Property Details

$handle protected_oe property

protected $handle

$method protected_oe property

protected $method

$mock protected_oe property

protected $mock

$name protected_oe property

protected $name