PHP Class Nelmio\Alice\Generator\Resolver\Value\Chainable\FixtureReferenceResolver

Inheritance: implements Nelmio\Alice\Generator\Resolver\Value\ChainableValueResolverInterface, implements Nelmio\Alice\Generator\ObjectGeneratorAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Afficher le fichier Open project: nelmio/alice Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Nelmio\Alice\Generator\ObjectGeneratorInterface $generator = null )
canResolve ( Nelmio\Alice\Definition\ValueInterface $value ) : boolean
resolve ( Nelmio\Alice\Definition\ValueInterface $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : ResolvedValueWithFixtureSet
withObjectGenerator ( Nelmio\Alice\Generator\ObjectGeneratorInterface $generator ) : self

Private Methods

Méthode Description
getReferredFixture ( string $id, ResolvedFixtureSet $set ) : Nelmio\Alice\FixtureIdInterface
resolveReferredFixture ( Nelmio\Alice\FixtureIdInterface $referredFixture, string $referredFixtureId, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedValueWithFixtureSet

Method Details

__construct() public méthode

public __construct ( Nelmio\Alice\Generator\ObjectGeneratorInterface $generator = null )
$generator Nelmio\Alice\Generator\ObjectGeneratorInterface

canResolve() public méthode

public canResolve ( Nelmio\Alice\Definition\ValueInterface $value ) : boolean
$value Nelmio\Alice\Definition\ValueInterface
Résultat boolean

resolve() public méthode

public resolve ( Nelmio\Alice\Definition\ValueInterface $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : ResolvedValueWithFixtureSet
$value Nelmio\Alice\Definition\ValueInterface
$fixture Nelmio\Alice\FixtureInterface
$fixtureSet Nelmio\Alice\Generator\ResolvedFixtureSet
$scope array
$context Nelmio\Alice\Generator\GenerationContext
Résultat Nelmio\Alice\Generator\ResolvedValueWithFixtureSet

withObjectGenerator() public méthode

public withObjectGenerator ( Nelmio\Alice\Generator\ObjectGeneratorInterface $generator ) : self
$generator Nelmio\Alice\Generator\ObjectGeneratorInterface
Résultat self