private function setCookieJar()
    {
        switch($this->options['cookie_type']){
            case 'array':
                $this->cookiejar = new CookieJar();
                break;
            case 'file':
                $this->cookiejar = new FileCookieJar($this->options['cookie_file_name']);
                break;
            case 'session':
                $this->cookiejar = new SessionCookieJar($this->options['cookie_session_key']);
                break;
            default:
                throw new YouHostingException("You didn't specify a valid cookie type!");
        }
    }
private function setCookieJar()
    {
        switch($this->options['cookie_type']){
            case 'array':
                $this->cookiejar = new CookieJar();
                break;
            case 'file':
                $this->cookiejar = new FileCookieJar($this->options['cookie_file_name']);
                break;
            case 'session':
                $this->cookiejar = new SessionCookieJar($this->options['cookie_session_key']);
                break;
            default:
                throw new YouHostingException("You didn't specify a valid cookie type!");
        }
    }
private function setCookieJar ( ) { switch ( $ this -> options [ 'cookie_type' ] ) { case 'array' : $ this -> cookiejar = new CookieJar ( ) ; break ; case 'file' : $ this -> cookiejar = new FileCookieJar ( $ this -> options [ 'cookie_file_name' ] ) ; break ; case 'session' : $ this -> cookiejar = new SessionCookieJar ( $ this -> options [ 'cookie_session_key' ] ) ; break ; default : throw new YouHostingException ( "You didn't specify a valid cookie type!" ) ; } }
Get the relevant cookie jar

@return CookieJar|FileCookieJar|SessionCookieJar
@throws YouHostingException
Get the relevant cookie jar