public function isValid()
    {
        if (empty($this->jsonrpc)) {
            return false;
        }

        if (empty($this->method) || !is_string($this->method)) {
            return false;
        }

        if (!empty($this->params) && !is_array($this->params)) {
            return false;
        }

        return true;
    }
public function isValid()
    {
        if (empty($this->jsonrpc)) {
            return false;
        }

        if (empty($this->method) || !is_string($this->method)) {
            return false;
        }

        if (!empty($this->params) && !is_array($this->params)) {
            return false;
        }

        return true;
    }
public function isValid ( ) { if ( empty ( $ this -> jsonrpc ) ) { return false ; } if ( empty ( $ this -> method ) || ! is_string ( $ this -> method ) ) { return false ; } if ( ! empty ( $ this -> params ) && ! is_array ( $ this -> params ) ) { return false ; } return true ; }
Is valid.

@return boolean
Is valid .