2020use Psr \Container \ContainerInterface ;
2121
2222/**
23- * Class ConfigContainer
23+ * Class ConfigContainer.
2424 *
2525 * Provides a PSR-11 compatible container interface for accessing configuration values.
2626 *
@@ -45,7 +45,7 @@ final class ConfigContainer implements ContainerInterface
4545 * This constructor SHALL wrap an existing ConfigInterface instance and expose it
4646 * through PSR-11 `get()` and `has()` methods with namespace-style key resolution.
4747 *
48- * @param ConfigInterface $config The configuration instance to expose as a container.
48+ * @param ConfigInterface $config the configuration instance to expose as a container
4949 */
5050 public function __construct (
5151 private ConfigInterface $ config ,
@@ -58,8 +58,9 @@ public function __construct(
5858 * - The identifier matches known internal bindings (alias, interface, or class).
5959 * - The identifier is prefixed with 'config' and corresponds to an existing key in the configuration.
6060 *
61- * @param string $id Identifier of the entry to look for.
62- * @return bool True if the entry can be resolved; false otherwise.
61+ * @param string $id identifier of the entry to look for
62+ *
63+ * @return bool true if the entry can be resolved; false otherwise
6364 */
6465 public function has (string $ id ): bool
6566 {
@@ -84,10 +85,11 @@ public function has(string $id): bool
8485 * If the configuration key exists, its value SHALL be returned.
8586 * - If the identifier cannot be resolved, a ContainerNotFoundException MUST be thrown.
8687 *
87- * @param string $id Identifier of the entry to retrieve.
88- * @return mixed The value associated with the identifier.
88+ * @param string $id identifier of the entry to retrieve
89+ *
90+ * @return mixed the value associated with the identifier
8991 *
90- * @throws ContainerNotFoundException If the identifier cannot be resolved.
92+ * @throws ContainerNotFoundException if the identifier cannot be resolved
9193 */
9294 public function get (string $ id )
9395 {
@@ -118,8 +120,9 @@ public function get(string $id)
118120 * - the ConfigInterface::class string
119121 * - the concrete class of the injected configuration instance
120122 *
121- * @param string $id The identifier to check.
122- * @return bool True if the identifier is resolved internally; false otherwise.
123+ * @param string $id the identifier to check
124+ *
125+ * @return bool true if the identifier is resolved internally; false otherwise
123126 */
124127 private function isResolvedByContainer (string $ id ): bool
125128 {
0 commit comments