code/libraries/joomlatools/library/http/cookie/cookie.php
public function &__get($key)
    {
        $result = null;

        if ($key == 'name') {
            $result = $this->_name;
        }

        if ($key == 'expire') {
            $result = $this->_expire;
        }

        if ($key == 'path') {
            $result = $this->_path;
        }

        return $result;
    }
public function &__get($key)
    {
        $result = null;

        if ($key == 'name') {
            $result = $this->_name;
        }

        if ($key == 'expire') {
            $result = $this->_expire;
        }

        if ($key == 'path') {
            $result = $this->_path;
        }

        return $result;
    }
public function & __get ( $ key ) { $ result = null ; if ( $ key == 'name' ) { $ result = $ this -> _name ; } if ( $ key == 'expire' ) { $ result = $ this -> _expire ; } if ( $ key == 'path' ) { $ result = $ this -> _path ; } return $ result ; }
Get a cookie attribute by key

@param   string $key   The key name.
@return  string $value The corresponding value.
Get a cookie attribute by key