Nelmio\Alice\Generator\Resolver\Fixture\TemplatingFixtureBag::get PHP Method

get() public method

public get ( string $id ) : Nelmio\Alice\FixtureInterface
$id string
return Nelmio\Alice\FixtureInterface
    public function get(string $id) : FixtureInterface
    {
        if ($this->fixtures->has($id)) {
            return $this->fixtures->get($id);
        }
        if ($this->templates->has($id)) {
            return $this->templates->get($id);
        }
        throw FixtureNotFoundExceptionFactory::create($id);
    }