public function compareMonth(Date $date) { $currentMonth = date('n', $this->getTimestamp()); $toCompareMonth = date('n', $date->getTimestamp()); if ($currentMonth == $toCompareMonth) { return 0; } if ($currentMonth < $toCompareMonth) { return -1; } return 1; }