diff options
Diffstat (limited to 'lib/public/DB/QueryBuilder/ICompositeExpression.php')
-rw-r--r-- | lib/public/DB/QueryBuilder/ICompositeExpression.php | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/lib/public/DB/QueryBuilder/ICompositeExpression.php b/lib/public/DB/QueryBuilder/ICompositeExpression.php index 905465ba9e0..12f321d9e54 100644 --- a/lib/public/DB/QueryBuilder/ICompositeExpression.php +++ b/lib/public/DB/QueryBuilder/ICompositeExpression.php @@ -1,27 +1,10 @@ <?php + /** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Christoph Wurst <christoph@winzerhof-wurst.at> - * @author Joas Schilling <coding@schilljs.com> - * @author Roeland Jago Douma <roeland@famdouma.nl> - * - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * + * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only */ - namespace OCP\DB\QueryBuilder; /** @@ -37,7 +20,7 @@ interface ICompositeExpression { * @return ICompositeExpression * @since 8.2.0 */ - public function addMultiple(array $parts = []); + public function addMultiple(array $parts = []): ICompositeExpression; /** * Adds an expression to composite expression. @@ -47,7 +30,7 @@ interface ICompositeExpression { * @return ICompositeExpression * @since 8.2.0 */ - public function add($part); + public function add($part): ICompositeExpression; /** * Retrieves the amount of expressions on composite expression. @@ -55,7 +38,7 @@ interface ICompositeExpression { * @return integer * @since 8.2.0 */ - public function count(); + public function count(): int; /** * Returns the type of this composite expression (AND/OR). @@ -63,5 +46,5 @@ interface ICompositeExpression { * @return string * @since 8.2.0 */ - public function getType(); + public function getType(): string; } |