From 6220b421d7f392b4c097fc31568a1a1d01c4e67b Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Tue, 21 Aug 2018 01:18:20 +0300 Subject: [PATCH] added interface for query, comments in code updated --- src/Interfaces/QueryInterface.php | 40 +++++++++++++++++++++++++++++++++++++++ src/Query.php | 22 +++++++++++++++------ 2 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 src/Interfaces/QueryInterface.php diff --git a/src/Interfaces/QueryInterface.php b/src/Interfaces/QueryInterface.php new file mode 100644 index 0000000..52ac1d4 --- /dev/null +++ b/src/Interfaces/QueryInterface.php @@ -0,0 +1,40 @@ +_attributes[] = $word; return $this; } /** - * @return array + * Get attributes array of current query + * + * @return array */ public function getAttributes(): array { @@ -48,7 +56,9 @@ class Query } /** - * @return string + * Get endpoint of current query + * + * @return string */ public function getEndpoint(): string {