Jyxo\Time\Composer::setMonth PHP Method

setMonth() public method

Sets the month.
public setMonth ( integer $month ) : self
$month integer Month
return self
    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;
    }