PHP Interface Nelmio\Alice\Generator\HydratorInterface

Datei anzeigen Open project: nelmio/alice Interface Usage Examples

Public Methods

Method Description
hydrate ( Nelmio\Alice\ObjectInterface $object, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet Hydrates the given object. Has access to the current fixture set and returns the new fixture set containing the hydrated object.

Method Details

hydrate() public method

Hydrates the given object. Has access to the current fixture set and returns the new fixture set containing the hydrated object.
public hydrate ( Nelmio\Alice\ObjectInterface $object, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet
$object Nelmio\Alice\ObjectInterface Object to hydrate
$fixtureSet ResolvedFixtureSet
$context GenerationContext
return ResolvedFixtureSet