public function compile(Template $template)
    {
        // Otherwise, we look for a compile method
        $method = 'compile'.ucfirst($template->getName());
        if (!method_exists($this, $method)) {
            return null;
        }

        return $this->$method($template);
    }
public function compile(Template $template)
    {
        // Otherwise, we look for a compile method
        $method = 'compile'.ucfirst($template->getName());
        if (!method_exists($this, $method)) {
            return null;
        }

        return $this->$method($template);
    }
public function compile ( Template $ template ) { // Otherwise, we look for a compile method $ method = 'compile' . ucfirst ( $ template -> getName ( ) ) ; if ( ! method_exists ( $ this , $ method ) ) { return null ; } return $ this -> $ method ( $ template ) ; }
Compile template.

@param Template $template

@return mixed
Compile template .