PHP Class Nelmio\Alice\Generator\ObjectGenerator\SimpleObjectGenerator

Inheritance: implements Nelmio\Alice\Generator\ObjectGeneratorInterface, use trait Nelmio\Alice\IsAServiceTrait
ファイルを表示 Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__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

Private Methods

Method Description
completeObject ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $set, GenerationContext $context ) : ResolvedFixtureSet

Method Details

__construct() public method

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 method

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
return Nelmio\Alice\ObjectBag