From 98ab3a30dcc997ee99d6c82b8e840638d4ce6950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Urnie=C5=BEa?= <mantas.urnieza@nfq.lt> Date: Thu, 16 Mar 2017 08:40:34 +0200 Subject: [PATCH] Getter for nested query and path. (#225) * Getter for nested query. Currently there is not possibility to get query object when it is wrapped inside nested query. * Exposing path for nested query. * Removing not needed space. --- src/Query/Joining/NestedQuery.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Query/Joining/NestedQuery.php b/src/Query/Joining/NestedQuery.php index 4db5960..e43ff18 100644 --- a/src/Query/Joining/NestedQuery.php +++ b/src/Query/Joining/NestedQuery.php @@ -67,4 +67,24 @@ class NestedQuery implements BuilderInterface ) ]; } + + /** + * Returns nested query object. + * + * @return BuilderInterface + */ + public function getQuery() + { + return $this->query; + } + + /** + * Returns path this query is set for. + * + * @return string + */ + public function getPath() + { + return $this->path; + } } -- GitLab