PHP Класс 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.
Наследование: implements Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\CollectionDenormalizer, implements Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerAwareInterface, implements Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

buildIds() публичный Метод

public buildIds ( string $id ) : array
$id string
Результат array

canDenormalize() публичный Метод

public canDenormalize ( string $reference ) : boolean
$reference string
Результат boolean

denormalize() публичный Метод

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
Результат Nelmio\Alice\FixtureBag

withFixtureDenormalizer() публичный Метод

public withFixtureDenormalizer ( Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface $denormalizer )
$denormalizer Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\FixtureDenormalizerInterface

withFlagParser() публичный Метод

public withFlagParser ( Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser ) : self
$parser Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface
Результат self