src/Exception/ValueObject/Template/TemplateNotFoundException.php
public static function create(string $index): TemplateNotFoundException
    {
        $template = 'Template with \'%s\' index was not found. Did you provide all required templates?';
        $message = sprintf($template, $index);

        return new static($message);
    }
public static function create(string $index): TemplateNotFoundException
    {
        $template = 'Template with \'%s\' index was not found. Did you provide all required templates?';
        $message = sprintf($template, $index);

        return new static($message);
    }
public static function create ( string $ index ) : TemplateNotFoundException { $ template = 'Template with \'%s\' index was not found. Did you provide all required templates?' ; $ message = sprintf ( $ template , $ index ) ; return new static ( $ message ) ; }
Creates the exception

@param string $index Index that should contain template, but it was not found
@return TemplateNotFoundException
Creates the exception