/** * @return static */ protected function byAnnual() { $annualQdn = collect(Info::fromYear($this->year()))->reduce(function ($carry, $index) { return $carry + [$index->month - 1 => round($index->count / 4)]; }, []); return collect([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])->map(function ($value, $index) use($annualQdn) { return collect($annualQdn)->get($index, 0); }, []); }