0
0
mirror of https://github.com/nextcloud/server.git synced 2024-11-14 12:26:49 +00:00
nextcloud_server/lib/private/Talk/ConversationOptions.php
Andy Scherzinger dae7c159f7
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-24 13:11:22 +02:00

34 lines
651 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 bool $isPublic;
private function __construct(bool $isPublic) {
$this->isPublic = $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;
}
}