public function setYear(int $year) : self
{
if ($year > self::YEAR_MAX || $year < self::YEAR_MIN) {
throw new ComposerException('Year out of range.', ComposerException::YEAR);
}
$this->year = $year;
return $this;
}