Example #1
0
 /**
  * Whether this MonthYear is greater than the given one
  *
  * @author Tom Haskins-Vaughan <*****@*****.**>
  * @since  1.0.0
  *
  * @param MonthYear $monthYear
  *
  * @return bool
  */
 public function greaterThan(MonthYear $other)
 {
     return $this->getYear() > $other->getYear() || $this->getYear() == $other->getYear() && $this->getMonth() > $other->getMonth();
 }