src/Charcoal/App/Handler/HandlerConfig.php
public function setTemplate($template)
    {
        if (empty($template)) {
            $this->template = null;
            return $this;
        }

        if (!is_string($template)) {
            throw new InvalidArgumentException(
                'Handler view template must be a string identifier.'
            );
        }

        $this->template = $template;
        return $this;
    }
public function setTemplate($template)
    {
        if (empty($template)) {
            $this->template = null;
            return $this;
        }

        if (!is_string($template)) {
            throw new InvalidArgumentException(
                'Handler view template must be a string identifier.'
            );
        }

        $this->template = $template;
        return $this;
    }
public function setTemplate ( $ template ) { if ( empty ( $ template ) ) { $ this -> template = null ; return $ this ; } if ( ! is_string ( $ template ) ) { throw new InvalidArgumentException ( 'Handler view template must be a string identifier.' ) ; } $ this -> template = $ template ; return $ this ; }
Set the template view.

@param  string|null $template The template identifier.
@throws InvalidArgumentException If the template view is invalid.
@return HandlerConfig Chainable
Set the template view .