19 declare(strict_types=1);
30 public const TYPES = [self::TYPE_COMPONENT];
46 if (!in_array($type, self::TYPES)) {
47 throw new \InvalidArgumentException(
48 "Invalid component type: $type" 83 foreach ($this->pluginslots as $id => $slot) {
84 yield $slot->getId() => $slot;
90 foreach ($this->pluginslots as $slot) {
91 if ($slot->getId() ===
$id) {
103 foreach ($this->pluginslots as $slot) {
104 if ($slot->getId() ===
$id) {
108 throw new \InvalidArgumentException(
109 "No plugin slot $id at component {$this->getQualifiedName()}" 115 foreach ($this->pluginslots as $slot) {
116 if ($slot->getName() ===
$name) {
128 foreach ($this->pluginslots as $slot) {
129 if ($slot->getName() ===
$name) {
133 throw new \InvalidArgumentException(
134 "No plugin slot $name at component {$this->getQualifiedName()}"
hasPluginSlotName(string $name)
Simple value class for basic information about a pluginslot.
getPluginSlotByName(string $name)
__construct(string $id, string $type, string $name, array &$pluginslots)
hasPluginSlotId(string $id)
getPluginSlotById(string $id)
Simple value class for basic information about a component.