public function httpOnly($httpOnly = null)
    {
        if ($httpOnly !== null) {
            $this->httpOnly = (bool) $httpOnly;
        }

        return (bool) $this->httpOnly;
    }
public function httpOnly($httpOnly = null)
    {
        if ($httpOnly !== null) {
            $this->httpOnly = (bool) $httpOnly;
        }

        return (bool) $this->httpOnly;
    }
public function httpOnly ( $ httpOnly = null ) { if ( $ httpOnly !== null ) { $ this -> httpOnly = ( bool ) $ httpOnly ; } return ( bool ) $ this -> httpOnly ; }
Sets if cookie is http only

@param bool $httpOnly

@return bool
Sets if cookie is http only