protected function getFlattened($type)
    {
        $history = [];
        foreach ($this->items as $class => $entries) {
            $history = array_merge($history, $entries[$type]);
        }

        ksort($history);

        return array_values($history);
    }