diff options
Diffstat (limited to 'lib/private/Calendar/CalendarQuery.php')
-rw-r--r-- | lib/private/Calendar/CalendarQuery.php | 53 |
1 files changed, 13 insertions, 40 deletions
diff --git a/lib/private/Calendar/CalendarQuery.php b/lib/private/Calendar/CalendarQuery.php index 0569b66b616..4eb4a4cd636 100644 --- a/lib/private/Calendar/CalendarQuery.php +++ b/lib/private/Calendar/CalendarQuery.php @@ -3,59 +3,32 @@ declare(strict_types=1); /** - * @copyright 2021 Anna Larch <anna.larch@gmx.net> - * - * @author Anna Larch <anna.larch@gmx.net> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * 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 - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OC\Calendar; use OCP\Calendar\ICalendarQuery; class CalendarQuery implements ICalendarQuery { + public array $searchProperties = []; - /** @var string */ - private $principalUri; + private ?string $searchPattern = null; - /** @var array */ - public $searchProperties; + private array $options = [ + 'types' => [], + ]; - /** @var string|null */ - private $searchPattern; + private ?int $offset = null; - /** @var array */ - private $options; - - /** @var int|null */ - private $offset; - - /** @var int|null */ - private $limit; + private ?int $limit = null; /** @var string[] */ - private $calendarUris = []; + private array $calendarUris = []; - public function __construct(string $principalUri) { - $this->principalUri = $principalUri; - $this->searchProperties = []; - $this->options = [ - 'types' => [], - ]; + public function __construct( + private string $principalUri, + ) { } public function getPrincipalUri(): string { |