/** * Compare two options and determine if they are equal * * @param Option $firstOption * @param Option $secondOption * @return int */ private function compareOptions(Option $firstOption, Option $secondOption) { if ($firstOption->getId() == $secondOption->getId()) { return 0; } else { return 1; } }