메소드 | 설명 | |
---|---|---|
__construct ( object | null $instance, PhpSpec\Formatter\Presenter\Presenter $presenter ) | ||
beAnInstanceOf ( string $classname, array $arguments = [] ) | ||
beConstructedThrough ( callable | string | null $factoryMethod, array $arguments = [] ) | ||
beConstructedWith ( array $args ) | ||
getArguments ( ) : array | ||
getClassName ( ) : string | ||
getFactoryMethod ( ) : callable | null | ||
getInstance ( ) : object | null | ||
instantiate ( ) : object | ||
isInstantiated ( ) : boolean | ||
setClassName ( string $classname ) | ||
setInstance ( object $instance ) | ||
setInstantiated ( boolean $instantiated ) |
메소드 | 설명 | |
---|---|---|
instantiateFromCallback ( callable $factoryCallable ) : object |
public __construct ( object | null $instance, PhpSpec\Formatter\Presenter\Presenter $presenter ) | ||
$instance | object | null | |
$presenter | PhpSpec\Formatter\Presenter\Presenter |
public beAnInstanceOf ( string $classname, array $arguments = [] ) | ||
$classname | string | |
$arguments | array |