From 1e9abaea15ec4323c0a53796765ad7621471ba23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20B=C3=83=3F=C3=82=C2=A9rub=C3=83=3F=C3=82=C2=A9?= Date: Sun, 5 May 2019 14:36:14 -0600 Subject: [PATCH] add missing docblocks in Cookies --- src/Cookies.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/Cookies.php b/src/Cookies.php index b7f9d71..8099011 100644 --- a/src/Cookies.php +++ b/src/Cookies.php @@ -66,7 +66,11 @@ public function setDefaults(array $settings) } /** - * {@inheritdoc} + * Get cookie + * + * @param string $name + * @param string|array|null $default + * @return mixed|null */ public function get(string $name, $default = null) { @@ -74,7 +78,11 @@ public function get(string $name, $default = null) } /** - * {@inheritdoc} + * Set cookie + * + * @param string $name + * @param string|array $value + * @return static */ public function set(string $name, $value) { @@ -88,7 +96,9 @@ public function set(string $name, $value) } /** - * {@inheritdoc} + * Convert all response cookies into an associate array of header values + * + * @return array */ public function toHeaders(): array { @@ -153,7 +163,13 @@ protected function toHeader(string $name, array $properties): string } /** - * {@inheritdoc} + * Parse cookie values from header value + * + * Returns an associative array of cookie names and values + * + * @param string|array $header + * + * @return array */ public static function parseHeader($header): array {