summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-12-20 09:00:55 +0100
committerPierre Schmitz <pierre@archlinux.de>2015-12-20 09:00:55 +0100
commita2190ac74dd4d7080b12bab90e552d7aa81209ef (patch)
tree8b31f38de9882d18df54cf8d9e0de74167a094eb /vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php
parent15e69f7b20b6596b9148030acce5b59993b95a45 (diff)
parent257401d8b2cf661adf36c84b0e3fd1cf85e33c22 (diff)
Merge branch 'mw-1.26'
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php35
1 files changed, 18 insertions, 17 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php b/vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php
index 809fb18d..03aae13b 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Query/HasParent.php
@@ -1,22 +1,20 @@
<?php
-
namespace Elastica\Query;
+
use Elastica\Query as BaseQuery;
/**
- * Returns child documents having parent docs matching the query
+ * Returns child documents having parent docs matching the query.
*
- * @category Xodoa
- * @package Elastica
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/has-parent-query.html
+ * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html
*/
class HasParent extends AbstractQuery
{
/**
- * Construct HasChild Query
+ * Construct HasChild Query.
*
- * @param string|\Elastica\Query|\Elastica\Query\AbstractQuery $query
- * @param string $type Parent document type
+ * @param string|\Elastica\Query|\Elastica\Query\AbstractQuery $query
+ * @param string $type Parent document type
*/
public function __construct($query, $type)
{
@@ -25,10 +23,11 @@ class HasParent extends AbstractQuery
}
/**
- * Sets query object
+ * Sets query object.
+ *
+ * @param string|\Elastica\Query|\Elastica\Query\AbstractQuery $query
*
- * @param string|\Elastica\Query|\Elastica\Query\AbstractQuery $query
- * @return \Elastica\Filter\HasParent
+ * @return $this
*/
public function setQuery($query)
{
@@ -39,10 +38,11 @@ class HasParent extends AbstractQuery
}
/**
- * Set type of the parent document
+ * Set type of the parent document.
*
- * @param string $type Parent document type
- * @return \Elastica\Filter\HasParent Current object
+ * @param string $type Parent document type
+ *
+ * @return $this
*/
public function setType($type)
{
@@ -50,10 +50,11 @@ class HasParent extends AbstractQuery
}
/**
- * Sets the scope
+ * Sets the scope.
+ *
+ * @param string $scope Scope
*
- * @param string $scope Scope
- * @return \Elastica\Filter\HasParent Current object
+ * @return $this
*/
public function setScope($scope)
{