protected function setEnd($end) { $this->end = YearMonth::from($end); }
protected function setStart($start) { $this->start = YearMonth::from($start); }
public function lessThan(YearMonth $that) { return $this->toInt() < $that->toInt(); }