Nelmio\Alice\Throwable\Exception\FixtureNotFoundExceptionFactory::create PHP Method

create() public static method

public static create ( string $id ) : FixtureNotFoundException
$id string
return FixtureNotFoundException
    public static function create(string $id) : FixtureNotFoundException
    {
        return new FixtureNotFoundException(sprintf('Could not find the fixture "%s".', $id));
    }

Usage Example

Example #1
0
 public function getTemplate(string $id) : FixtureInterface
 {
     if ($this->templates->has($id)) {
         return $this->templates->get($id);
     }
     throw FixtureNotFoundExceptionFactory::create($id);
 }
All Usage Examples Of Nelmio\Alice\Throwable\Exception\FixtureNotFoundExceptionFactory::create
FixtureNotFoundExceptionFactory