summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-10-18 09:31:31 +0200
committerPierre Schmitz <pierre@archlinux.de>2015-10-18 09:31:31 +0200
commit80f7dc77d430774192b929d780f96260066df2ee (patch)
tree102eaae7fc9ec567f2af76e96da3de2d1e83afcf /vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php
parentcccd7bb4d819334c07e0dadaf16cbfdef31880e1 (diff)
Update to MediaWiki 1.25.3
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php b/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php
deleted file mode 100644
index 665f155f..00000000
--- a/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractFilter.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-namespace Elastica\Filter;
-
-use Elastica\Exception\InvalidException;
-use Elastica\Param;
-
-/**
- * Abstract filter object. Should be extended by all filter types
- *
- * @category Xodoa
- * @package Elastica
- * @author Nicolas Ruflin <spam@ruflin.com>
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/
- */
-abstract class AbstractFilter extends Param
-{
- /**
- * Sets the filter cache
- *
- * @param boolean $cached Cached
- * @return \Elastica\Filter\AbstractFilter
- */
- public function setCached($cached = true)
- {
- return $this->setParam('_cache', (bool) $cached);
- }
-
- /**
- * Sets the filter cache key
- *
- * @param string $cacheKey Cache key
- * @throws \Elastica\Exception\InvalidException
- * @return \Elastica\Filter\AbstractFilter
- */
- public function setCacheKey($cacheKey)
- {
- $cacheKey = (string) $cacheKey;
-
- if (empty($cacheKey)) {
- throw new InvalidException('Invalid parameter. Has to be a non empty string');
- }
-
- return $this->setParam('_cache_key', (string) $cacheKey);
- }
-
- /**
- * Sets the filter name
- *
- * @param string $name Name
- * @return \Elastica\Filter\AbstractFilter
- */
- public function setName($name)
- {
- return $this->setParam('_name', $name);
- }
-}