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