PHP Class Nelmio\Alice\Generator\ObjectGenerator\CompleteObjectGenerator

Inheritance: implements Nelmio\Alice\Generator\ObjectGeneratorInterface, use trait Nelmio\Alice\IsAServiceTrait
Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\Generator\ObjectGeneratorInterface $objectGenerator )
generate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ObjectBag

Private Methods

Method Description
isObjectComplete ( Nelmio\Alice\FixtureInterface $fixture, Nelmio\Alice\ObjectInterface $object, GenerationContext $context ) : boolean

Method Details

__construct() public method

public __construct ( Nelmio\Alice\Generator\ObjectGeneratorInterface $objectGenerator )
$objectGenerator Nelmio\Alice\Generator\ObjectGeneratorInterface

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