public function equals(Account $account): bool
    {
        if ($this->name !== $account->name) {
            return false;
        }

        if (!$this->homePage->equals($account->homePage)) {
            return false;
        }

        return true;
    }
public function equals(Account $account): bool
    {
        if ($this->name !== $account->name) {
            return false;
        }

        if (!$this->homePage->equals($account->homePage)) {
            return false;
        }

        return true;
    }
public function equals ( Account $ account ) : bool { if ( $ this -> name !== $ account -> name ) { return false ; } if ( ! $ this -> homePage -> equals ( $ account -> homePage ) ) { return false ; } return true ; }
Checks if another account is equal.

Two accounts are equal if and only if all of their properties are equal.
Checks if another account is equal .