public function equals(Result $result): bool
    {
        if (null !== $this->score xor null !== $result->score) {
            return false;
        }

        if (null !== $this->score && !$this->score->equals($result->score)) {
            return false;
        }

        if ($this->success !== $result->success) {
            return false;
        }

        if ($this->completion !== $result->completion) {
            return false;
        }

        if ($this->response !== $result->response) {
            return false;
        }

        if ($this->duration !== $result->duration) {
            return false;
        }

        if (null !== $this->extensions xor null !== $result->extensions) {
            return false;
        }

        if (null !== $this->extensions && null !== $result->extensions && !$this->extensions->equals($result->extensions)) {
            return false;
        }

        return true;
    }
public function equals(Result $result): bool
    {
        if (null !== $this->score xor null !== $result->score) {
            return false;
        }

        if (null !== $this->score && !$this->score->equals($result->score)) {
            return false;
        }

        if ($this->success !== $result->success) {
            return false;
        }

        if ($this->completion !== $result->completion) {
            return false;
        }

        if ($this->response !== $result->response) {
            return false;
        }

        if ($this->duration !== $result->duration) {
            return false;
        }

        if (null !== $this->extensions xor null !== $result->extensions) {
            return false;
        }

        if (null !== $this->extensions && null !== $result->extensions && !$this->extensions->equals($result->extensions)) {
            return false;
        }

        return true;
    }
public function equals ( Result $ result ) : bool { if ( null !== $ this -> score xor null !== $ result -> score ) { return false ; } if ( null !== $ this -> score && ! $ this -> score -> equals ( $ result -> score ) ) { return false ; } if ( $ this -> success !== $ result -> success ) { return false ; } if ( $ this -> completion !== $ result -> completion ) { return false ; } if ( $ this -> response !== $ result -> response ) { return false ; } if ( $ this -> duration !== $ result -> duration ) { return false ; } if ( null !== $ this -> extensions xor null !== $ result -> extensions ) { return false ; } if ( null !== $ this -> extensions && null !== $ result -> extensions && ! $ this -> extensions -> equals ( $ result -> extensions ) ) { return false ; } return true ; }
Checks if another result is equal.

Two results are equal if and only if all of their properties are equal.
Checks if another result is equal .