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