19 declare(strict_types=1);
48 private readonly array $providers
50 $this->map =
new Map();
55 yield
from $this->providers;
63 $this->map->addMultiple(...$provider->getMetaBarItems());
74 return iterator_to_array($this->map->getAllFromRaw());
79 if ($this->default_topics) {
80 $add_default_topic =
static function (
isItem &$item) use (&$add_default_topic):
isItem {
82 $item = $item->withTopics(
new Topic($item->getProviderIdentification()->getInternalIdentifier()));
85 foreach ($item->getChildren() as $child) {
86 $child = $add_default_topic($child);
93 $this->map->walk($add_default_topic);
109 foreach ($this->map->getAllFromFilter() as $item) {
116 return $this->map->has();
125 return $item instanceof
isItem;
139 return function (
isItem &$item):
void {
141 $children = $item->getChildren();
142 $this->sortItems($children);
143 $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()