public withSpecs ( |
||
$specs | ||
return | self |
public function withSpecs(SpecificationBag $specs) : self
{
$clone = clone $this;
$clone->fixture = $this->fixture->withSpecs($specs);
return $clone;
}
public function getExtendedFixture(TemplatingFixture $fixture, FixtureBag $extendedFixtures) { $specs = $fixture->getSpecs(); foreach ($extendedFixtures as $extendedFixture) { /** @var FixtureInterface $extendedFixture */ $specs = $specs->mergeWith($extendedFixture->getSpecs()); } return $fixture->withSpecs($specs); }