From e5a78fbe798c7edaf1c765da142ff26c19184ca8 Mon Sep 17 00:00:00 2001 From: Kevin Olson Date: Thu, 6 Aug 2020 21:20:12 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20change=20type=20to=20rules,=20sp?= =?UTF-8?q?ecify=20detail,=20fixes=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MetApi.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MetApi.php b/src/MetApi.php index 705d0e5..92b8733 100644 --- a/src/MetApi.php +++ b/src/MetApi.php @@ -35,15 +35,15 @@ public function __construct(Request $request) } /** - * push an option to our query stack + * Push an option to our query stack * - * @param string $name - * @param string|array $type + * @param string $name Name of the option + * @param string|array $rules String or array of Validation Rules, see https://laravel.com/docs/7.x/validation#available-validation-rules * @return MetApi */ - public function option($name, $type) + public function option($name, $rules) { - $this->query['options'][$name] = $type; + $this->query['options'][$name] = $rules; return $this; }