PHP Класс Nelmio\Alice\Generator\Instantiator\ExistingInstanceInstantiator

Наследование: implements Nelmio\Alice\Generator\InstantiatorInterface, implements Nelmio\Alice\Generator\ValueResolverAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Nelmio\Alice\Generator\InstantiatorInterface $decoratedInstantiator, Nelmio\Alice\Generator\ValueResolverInterface $resolver = null )
instantiate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet
withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self

Описание методов

__construct() публичный Метод

public __construct ( Nelmio\Alice\Generator\InstantiatorInterface $decoratedInstantiator, Nelmio\Alice\Generator\ValueResolverInterface $resolver = null )
$decoratedInstantiator Nelmio\Alice\Generator\InstantiatorInterface
$resolver Nelmio\Alice\Generator\ValueResolverInterface

instantiate() публичный Метод

public instantiate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet
$fixture Nelmio\Alice\FixtureInterface
$fixtureSet Nelmio\Alice\Generator\ResolvedFixtureSet
$context Nelmio\Alice\Generator\GenerationContext
Результат Nelmio\Alice\Generator\ResolvedFixtureSet

withValueResolver() публичный Метод

public withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self
$resolver Nelmio\Alice\Generator\ValueResolverInterface
Результат self