public function getFrom(TemporalAccessor $temporal) { if ($this->isSupportedBy($temporal) === false) { throw new UnsupportedTemporalTypeException("Unsupported field: WeekBasedYear"); } return IsoFields::getWeekBasedYear(LocalDate::from($temporal)); }