public function equals(IntegrationSystem $integrationSystem) { if ($this->getInherit() != $integrationSystem->getInherit()) { return false; } if ($this->getFullOptions() != $integrationSystem->getFullOptions()) { return false; } if ($this->getSystem()->getId() != $integrationSystem->getSystem()->getId()) { return false; } if ($this->getIntegration() != $integrationSystem->getIntegration()) { return false; } return true; }