public function with(FixtureInterface $fixture) : self { $clone = clone $this; if ($fixture instanceof TemplatingFixture && $fixture->isATemplate()) { $clone->templates = $clone->templates->with($fixture); } else { $clone->fixtures = $clone->fixtures->with($fixture); } return $clone; }