summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Search/SearchBinaryOperator.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-02 18:20:08 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-01 14:06:39 +0100
commitdf2063ee7b49d051f9081c6fd416dd8791358ada (patch)
treea90e9f6dbae0767247593941e7c6e95b9c41befb /lib/private/Files/Search/SearchBinaryOperator.php
parent706131b394eef4d346f8019b4978f9a735139b03 (diff)
downloadnextcloud-server-df2063ee7b49d051f9081c6fd416dd8791358ada.tar.gz
nextcloud-server-df2063ee7b49d051f9081c6fd416dd8791358ada.zip
Implement webdav SEARCH
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Search/SearchBinaryOperator.php')
-rw-r--r--lib/private/Files/Search/SearchBinaryOperator.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/private/Files/Search/SearchBinaryOperator.php b/lib/private/Files/Search/SearchBinaryOperator.php
index 15944e27768..c9466d8b9ea 100644
--- a/lib/private/Files/Search/SearchBinaryOperator.php
+++ b/lib/private/Files/Search/SearchBinaryOperator.php
@@ -18,3 +18,40 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
+namespace OC\Files\Search;
+
+use OCP\Files\Search\ISearchBinaryOperator;
+use OCP\Files\Search\ISearchOperator;
+
+class SearchBinaryOperator implements ISearchBinaryOperator {
+ /** @var string */
+ private $type;
+ /** @var ISearchOperator[] */
+ private $arguments;
+
+ /**
+ * SearchBinaryOperator constructor.
+ *
+ * @param string $type
+ * @param ISearchOperator[] $arguments
+ */
+ public function __construct($type, array $arguments) {
+ $this->type = $type;
+ $this->arguments = $arguments;
+ }
+
+ /**
+ * @return string
+ */
+ public function getType() {
+ return $this->type;
+ }
+
+ /**
+ * @return ISearchOperator[]
+ */
+ public function getArguments() {
+ return $this->arguments;
+ }
+}