public function get($key = null)
    {
        return (is_null($key) ? $_COOKIE : ($this->has($key) ? $_COOKIE[$key] : null));
    }
public function get($key = null)
    {
        return (is_null($key) ? $_COOKIE : ($this->has($key) ? $_COOKIE[$key] : null));
    }
public function get ( $ key = null ) { return ( is_null ( $ key ) ? $ _COOKIE : ( $ this -> has ( $ key ) ? $ _COOKIE [ $ key ] : null ) ) ; }
Get cookie method.

@param string $key

@return null|mixed
Get cookie method .