src/generators/FileGenerator.php
public function validateTemplate($attribute, array $params)
    {
        if (!isset(self::$config->templates[$this->template])) {
            $this->addError('template', "Unable to find template '{$this->template}'.");
        }
    }
public function validateTemplate($attribute, array $params)
    {
        if (!isset(self::$config->templates[$this->template])) {
            $this->addError('template', "Unable to find template '{$this->template}'.");
        }
    }
public function validateTemplate ( $ attribute , array $ params ) { if ( ! isset ( self :: $ config -> templates [ $ this -> template ] ) ) { $ this -> addError ( 'template' , "Unable to find template '{$this->template}'." ) ; } }
Validates the template for this generator.

@param string $attribute the attribute to validate.
@param array $params validation parameters.
Validates the template for this generator .