PHP Класс Nelmio\Alice\Generator\ObjectGenerator\SimpleObjectGenerator

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

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

Метод Описание
__construct ( Nelmio\Alice\Generator\ValueResolverInterface $valueResolver, Nelmio\Alice\Generator\InstantiatorInterface $instantiator, Nelmio\Alice\Generator\HydratorInterface $hydrator, Nelmio\Alice\Generator\CallerInterface $caller )
generate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ObjectBag

Приватные методы

Метод Описание
completeObject ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $set, GenerationContext $context ) : ResolvedFixtureSet

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

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

public __construct ( Nelmio\Alice\Generator\ValueResolverInterface $valueResolver, Nelmio\Alice\Generator\InstantiatorInterface $instantiator, Nelmio\Alice\Generator\HydratorInterface $hydrator, Nelmio\Alice\Generator\CallerInterface $caller )
$valueResolver Nelmio\Alice\Generator\ValueResolverInterface
$instantiator Nelmio\Alice\Generator\InstantiatorInterface
$hydrator Nelmio\Alice\Generator\HydratorInterface
$caller Nelmio\Alice\Generator\CallerInterface

generate() публичный метод

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