Nelmio\Alice\Definition\Fixture\SimpleFixtureWithFlags::__construct PHP Method

__construct() public method

public __construct ( Nelmio\Alice\FixtureInterface $fixture, FlagBag $flags )
$fixture Nelmio\Alice\FixtureInterface
$flags Nelmio\Alice\Definition\FlagBag
    public function __construct(FixtureInterface $fixture, FlagBag $flags)
    {
        if ($fixture->getId() !== $flags->getKey()) {
            throw InvalidArgumentExceptionFactory::createForFlagBagKeyMismatch($fixture, $flags);
        }
        $this->fixture = clone $fixture;
        $this->flags = $flags;
    }