diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-09-04 16:25:13 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-09-04 16:25:13 +0300 |
commit | 1ae93001b8745a3031c691391ad00e098d002356 (patch) | |
tree | afe06e53a6642d603ab6db1bc8dd9035740bfda2 | |
parent | 721496507bd34d8ee1ba96fd7133c0f19d8e41c9 (diff) |
request can be send on construct()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Model/SearchResult.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Model/SearchResult.php b/lib/Model/SearchResult.php index 580d5df..9b33a17 100644 --- a/lib/Model/SearchResult.php +++ b/lib/Model/SearchResult.php @@ -59,7 +59,8 @@ class SearchResult implements \JsonSerializable { private $request; - public function __construct() { + public function __construct(SearchRequest $searchRequest = null) { + $this->request = $searchRequest; } |