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.
파일 보기
프로젝트 열기: nelmio/alice
공개 메소드들
메소드 |
설명 |
|
__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. |
|
메소드 상세
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 |
|
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 |
|
public withFlagParser ( Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser ) : self |
$parser |
Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface |
|
리턴 |
self |
|