Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\SimpleCollectionDenormalizer::__construct PHP Method

__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
    public function __construct(CollectionDenormalizer $decoratedCollectionDenormalizer, FixtureDenormalizerInterface $decoratedDenormalizer = null, FlagParserInterface $parser = null)
    {
        if ($decoratedCollectionDenormalizer instanceof FixtureDenormalizerAwareInterface && null !== $decoratedDenormalizer) {
            $decoratedCollectionDenormalizer = $decoratedCollectionDenormalizer->withFixtureDenormalizer($decoratedDenormalizer);
        }
        if ($decoratedCollectionDenormalizer instanceof FlagParserAwareInterface && null !== $parser) {
            $decoratedCollectionDenormalizer = $decoratedCollectionDenormalizer->withFlagParser($parser);
        }
        $this->collectionDenormalizer = $decoratedCollectionDenormalizer;
        $this->denormalizer = $decoratedDenormalizer;
        $this->parser = $parser;
    }