19 declare(strict_types=1);
47 private readonly array $providers
49 $this->map =
new Map();
54 yield
from $this->providers;
62 $this->map->addMultiple(...$provider->getMetaBarItems());
73 return iterator_to_array($this->map->getAllFromRaw());
78 if ($this->default_topics) {
79 $add_default_topic =
static function (
isItem &$item) use (&$add_default_topic):
isItem {
81 $item = $item->withTopics(
new Topic($item->getProviderIdentification()->getInternalIdentifier()));
84 foreach ($item->getChildren() as $child) {
85 $child = $add_default_topic($child);
92 $this->map->walk($add_default_topic);
108 foreach ($this->map->getAllFromFilter() as $item) {
115 return $this->map->has();
124 return $item instanceof
isItem;
138 return function (
isItem &$item):
void {
140 $children = $item->getChildren();
141 $this->sortItems($children);
142 $item = $item->withChildren($children);
This is just a class that marks a string as a help topic.
Class AbstractBaseCollector.
cleanupItemsForUIRepresentation()
prepareItemsForUIRepresentation()
__construct(private readonly array $providers)
filterItemsByVisibilty(bool $async_only=false)
sortItemsForUIRepresentation()
Class MetaBarMainCollector.
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
getItemsForUIRepresentation()