PHP Class Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\CollectionDenormalizerWithTemporaryFixture
to know if it can build a fixture with the ID 'dummy{1..2}' and to generate the 'dummy1' and 'dummy2' IDs.
To instantiate the fixtures, it chooses the strategy to instantiate a "temporary" fixture, and then creates the real
fixtures from this temporary fixture to only have to generate a fixture 1 time instead of X times.
Exibir arquivo
Open project: nelmio/alice
Public Methods
Method |
Description |
|
__construct ( Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\CollectionDenormalizer $decoratedCollectionDenormalizer, Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface $decoratedDenormalizer = null, Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser = null ) |
|
|
buildIds ( string $id ) : array |
|
|
canDenormalize ( string $reference ) : boolean |
|
|
denormalize ( FixtureBag $builtFixtures, string $className, string $fixtureId, array $specs, FlagBag $flags ) : FixtureBag |
|
|
withFixtureDenormalizer ( Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface $denormalizer ) |
|
|
withFlagParser ( Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser ) : self |
|
|
Private Methods
Method |
Description |
|
denormalizeTemporaryFixture ( FixtureBag $builtFixtures, string $className, array $specs, FlagBag $flags ) : array |
Helper method which uses the denormalizer to denormalize a fixture with the given properties but with a random
ID. The ID used and with the fixtures are returned. |
|
Method Details
__construct()
public method
public __construct ( Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\CollectionDenormalizer $decoratedCollectionDenormalizer, Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface $decoratedDenormalizer = null, Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser = null ) |
$decoratedCollectionDenormalizer |
Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\CollectionDenormalizer |
|
$decoratedDenormalizer |
Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface |
|
$parser |
Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface |
|
canDenormalize()
public method
denormalize()
public method
public denormalize ( FixtureBag $builtFixtures, string $className, string $fixtureId, array $specs, FlagBag $flags ) : FixtureBag |
$builtFixtures |
Nelmio\Alice\FixtureBag |
|
$className |
string |
|
$fixtureId |
string |
|
$specs |
array |
|
$flags |
Nelmio\Alice\Definition\FlagBag |
|
return |
Nelmio\Alice\FixtureBag |
|
withFixtureDenormalizer()
public method
public withFixtureDenormalizer ( Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface $denormalizer ) |
$denormalizer |
Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface |
|
withFlagParser()
public method
public withFlagParser ( Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser ) : self |
$parser |
Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface |
|
return |
self |
|