2017-02-02 12:19:16 -05:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-02-02 12:19:16 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Files\Search;
|
|
|
|
|
|
2017-02-02 12:20:08 -05:00
|
|
|
/**
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2017-02-02 12:19:16 -05:00
|
|
|
interface ISearchBinaryOperator extends ISearchOperator {
|
2024-02-14 14:48:27 -05:00
|
|
|
/**
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2020-04-10 10:54:27 -04:00
|
|
|
public const OPERATOR_AND = 'and';
|
2024-02-14 14:48:27 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2020-04-10 10:54:27 -04:00
|
|
|
public const OPERATOR_OR = 'or';
|
2024-02-14 14:48:27 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2020-04-10 10:54:27 -04:00
|
|
|
public const OPERATOR_NOT = 'not';
|
2017-02-02 12:19:16 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The type of binary operator
|
|
|
|
|
*
|
|
|
|
|
* One of the ISearchBinaryOperator::OPERATOR_* constants
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
2017-02-02 12:20:08 -05:00
|
|
|
* @since 12.0.0
|
2017-02-02 12:19:16 -05:00
|
|
|
*/
|
|
|
|
|
public function getType();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The arguments for the binary operator
|
|
|
|
|
*
|
|
|
|
|
* One argument for the 'not' operator and two for 'and' and 'or'
|
|
|
|
|
*
|
|
|
|
|
* @return ISearchOperator[]
|
2017-02-02 12:20:08 -05:00
|
|
|
* @since 12.0.0
|
2017-02-02 12:19:16 -05:00
|
|
|
*/
|
|
|
|
|
public function getArguments();
|
|
|
|
|
}
|