public function getTemplateVar($templateVariableName)
    {
        if (! isset($this->templateVars[$templateVariableName])) {
            throw new \InvalidArgumentException(sprintf("Template variable '%s' is not defined.", $templateVariableName));
        }

        return $this->templateVars[$templateVariableName];
    }
public function getTemplateVar($templateVariableName)
    {
        if (! isset($this->templateVars[$templateVariableName])) {
            throw new \InvalidArgumentException(sprintf("Template variable '%s' is not defined.", $templateVariableName));
        }

        return $this->templateVars[$templateVariableName];
    }
public function getTemplateVar ( $ templateVariableName ) { if ( ! isset ( $ this -> templateVars [ $ templateVariableName ] ) ) { throw new \ InvalidArgumentException ( sprintf ( "Template variable '%s' is not defined." , $ templateVariableName ) ) ; } return $ this -> templateVars [ $ templateVariableName ] ; }
Return a template variable value. An exception is thorwn if the variable is not defined.

@param string $templateVariableName the variable name

@return mixed the variable value
@throws \InvalidArgumentException if the variable is not defined
Return a template variable value . An exception is thorwn if the variable is not defined .