private static function getMonth($offset)
{
$months = static::$months;
$month = intval(date('n')) - 1;
$month += $offset;
$month = $month % 12;
if ($month < 0) {
$month += 12;
}
return trans('texts.' . $months[$month]);
}
private static function getDatePart($part, $offset) { $offset = intval($offset); if ($part == 'MONTH') { return Utils::getMonth($offset); } elseif ($part == 'QUARTER') { return Utils::getQuarter($offset); } elseif ($part == 'YEAR') { return Utils::getYear($offset); } }