/** * Returns a new Date object representing the end of the current year. * * @return Date * * @since 2.0.0 */ public function endOfYear() { return new static($this->datetime->endOfYear()); }