nextcloud/lib/private/Talk/ConversationOptions.php
Carl Schwan 7b6078875b
refactor: Run rector on lib/private
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2026-02-06 13:50:18 +01:00

32 lines
608 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Talk;
use OCP\Talk\IConversationOptions;
class ConversationOptions implements IConversationOptions {
private function __construct(
private bool $isPublic,
) {
}
public static function default(): self {
return new self(false);
}
public function setPublic(bool $isPublic = true): IConversationOptions {
$this->isPublic = $isPublic;
return $this;
}
public function isPublic(): bool {
return $this->isPublic;
}
}