Method | Description | |
---|---|---|
__construct ( |
Construct a new handle factory. | |
instance ( ) : |
Get the static instance of this factory. | |
instanceHandle ( Eloquent\Phony\Mock\Mock | InstanceHandle $mock, string | null $label = null ) : InstanceHandle | Create a new handle. | |
staticHandle ( Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string $class ) : |
Create a new static handle. |
public __construct ( |
||
$stubFactory | The stub factory to use. | |
$stubVerifierFactory | The stub verifier factory to use. | |
$assertionRenderer | The assertion renderer to use. | |
$assertionRecorder | Eloquent\Phony\Assertion\AssertionRecorder | The assertion recorder to use. |
$invoker | The invoker to use. |
public static instance ( ) : |
||
return | The static factory. |
public instanceHandle ( Eloquent\Phony\Mock\Mock | InstanceHandle $mock, string | null $label = null ) : InstanceHandle | ||
$mock | Eloquent\Phony\Mock\Mock | InstanceHandle | The mock. |
$label | string | null | The label. |
return | InstanceHandle | The newly created handle. |
public staticHandle ( Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string $class ) : |
||
$class | Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string | The class. |
return | The newly created handle. |