public function setMonth(int $month) : self { if ($month < 1 || $month > 12) { throw new ComposerException('Month out of range.', ComposerException::MONTH); } $this->month = $month; return $this; }