public function vars($key = null)
    {
        if (null === $this->__vars) {
            $this->setVars(new Variables());
        }

        if (null === $key) {
            return $this->__vars;
        }
        return $this->__vars[$key];
    }
public function vars($key = null)
    {
        if (null === $this->__vars) {
            $this->setVars(new Variables());
        }

        if (null === $key) {
            return $this->__vars;
        }
        return $this->__vars[$key];
    }
public function vars ( $ key = null ) { if ( null === $ this -> __vars ) { $ this -> setVars ( new Variables ( ) ) ; } if ( null === $ key ) { return $ this -> __vars ; } return $ this -> __vars [ $ key ] ; }
Get a single variable, or all variables

@param  mixed $key
@return mixed
Get a single variable or all variables