From 688fda39c070a48f1f406594b0c1e8db77058fc9 Mon Sep 17 00:00:00 2001 From: Arif Hoque Date: Thu, 26 Feb 2026 13:24:39 +0600 Subject: [PATCH] InputBag doc comment updated --- src/Phaseolies/Http/InputBag.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/Phaseolies/Http/InputBag.php b/src/Phaseolies/Http/InputBag.php index baa51e15..d05c35ce 100644 --- a/src/Phaseolies/Http/InputBag.php +++ b/src/Phaseolies/Http/InputBag.php @@ -2,12 +2,6 @@ namespace Phaseolies\Http; -/** - * Class InputBag - * - * A simple container for managing input data (e.g., query parameters, form data). - * Provides methods to retrieve, set, check, and replace input data. - */ class InputBag { /** @@ -18,7 +12,7 @@ class InputBag /** * InputBag constructor. * - * @param array $data Initial data to populate the bag. + * @param array $data */ public function __construct(array $data = []) { @@ -28,9 +22,9 @@ public function __construct(array $data = []) /** * Retrieves the value for a given key from the input data. * - * @param string $key The key to retrieve. - * @param mixed $default The default value to return if the key does not exist. - * @return mixed The value associated with the key, or the default value if the key is not found. + * @param string $key + * @param mixed $default + * @return mixed */ public function get(string $key, mixed $default = null): mixed { @@ -40,8 +34,9 @@ public function get(string $key, mixed $default = null): mixed /** * Sets a value for a given key in the input data. * - * @param string $key The key to set. - * @param mixed $value The value to associate with the key. + * @param string $key + * @param mixed $value + * @return void */ public function set(string $key, mixed $value): void { @@ -51,8 +46,8 @@ public function set(string $key, mixed $value): void /** * Checks if a key exists in the input data. * - * @param string $key The key to check. - * @return bool True if the key exists, false otherwise. + * @param string $key + * @return bool */ public function has(string $key): bool { @@ -62,7 +57,7 @@ public function has(string $key): bool /** * Retrieves all input data as an associative array. * - * @return array The entire input data. + * @return array */ public function all(): array { @@ -72,7 +67,8 @@ public function all(): array /** * Replaces the entire input data with a new set of data. * - * @param array $data The new data to replace the existing input data. + * @param array $data + * @return void */ public function replace(array $data): void {