@@ -104,7 +104,7 @@ interface ComponentAwareQueryInterface
104104 /**
105105 * Get all registered component types.
106106 *
107- * @return array
107+ * @return array<self::COMPONENT_*|string> An array of self::COMPONENT_* and/or self-registered keys
108108 */
109109 public function getComponentTypes (): array ;
110110
@@ -131,9 +131,9 @@ public function getComponents(): array;
131131 * You can optionally supply an autoload class to create a new component
132132 * instance if there is no registered component for the given key yet.
133133 *
134- * @param string $key Use one of the constants
135- * @param bool $autoload Autoload if component needs to be created
136- * @param array|null $config Configuration to use for autoload
134+ * @param self::COMPONENT_*| string $key A self::COMPONENT_* or self-registered key
135+ * @param bool $autoload Autoload if component needs to be created
136+ * @param array|null $config Configuration to use for autoload
137137 *
138138 * @throws OutOfBoundsException
139139 *
@@ -146,8 +146,8 @@ public function getComponent(string $key, ?bool $autoload = false, ?array $confi
146146 *
147147 * This overwrites any existing component registered with the same key.
148148 *
149- * @param string $ key
150- * @param AbstractComponent $component
149+ * @param self::COMPONENT_*| string $key A self::COMPONENT_* or self-registered key
150+ * @param AbstractComponent $component
151151 *
152152 * @return self Provides fluent interface
153153 */
@@ -158,7 +158,7 @@ public function setComponent(string $key, AbstractComponent $component): self;
158158 *
159159 * You can remove a component by passing its key or the component instance.
160160 *
161- * @param string|AbstractComponent $component
161+ * @param self::COMPONENT_*| string|AbstractComponent $component
162162 *
163163 * @return self Provides fluent interface
164164 */
0 commit comments