src/TemplatesManager.php
public function addTemplate($name, $filename)
    {
        if (!is_string($name) || !is_string($filename) || empty($name) || empty($filename)) {
            throw new \InvalidArgumentException('Template name and filename must be a not empty string');
        }

        $this->templateMap[$name] = $filename;
    }
public function addTemplate($name, $filename)
    {
        if (!is_string($name) || !is_string($filename) || empty($name) || empty($filename)) {
            throw new \InvalidArgumentException('Template name and filename must be a not empty string');
        }

        $this->templateMap[$name] = $filename;
    }
public function addTemplate ( $ name , $ filename ) { if ( ! is_string ( $ name ) || ! is_string ( $ filename ) || empty ( $ name ) || empty ( $ filename ) ) { throw new \ InvalidArgumentException ( 'Template name and filename must be a not empty string' ) ; } $ this -> templateMap [ $ name ] = $ filename ; }
Add template to the map

@param string $name
@param string $filename
@throws \InvalidArgumentException
Add template to the map