/** * Return if a city is equal than current * * @param CityInterface $city City to be compared with * * @return boolean Cities are the same */ public function equals(CityInterface $city) { return $city->getId() === $this->getId(); }