for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Andrew Coulton <[email protected]>
* @copyright 2015 inGenerator Ltd
* @license http://kohanaframework.org/license
*/
namespace Ingenerator\KohanaView\Exception;
* Thrown when a TemplateSpecifyingView does not return a valid template name
*
* @package Ingenerator\KohanaView\Exception
class UnspecifiedTemplateNameException extends \UnexpectedValueException
{
* @param string $view_class
* @return static
public static function forEmptyValue($view_class)
return new static(
$view_class.'::getTemplateName() must return a template name, empty value returned'
);
}
* @param string $template
public static function forNonStringValue($view_class, $template)
sprintf(
'%s::getTemplateName() must return a string template name, %s value returned',
$view_class,
is_object($template) ? get_class($template) : gettype($template)
)