-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGroupInterface.php
More file actions
41 lines (28 loc) · 1.05 KB
/
GroupInterface.php
File metadata and controls
41 lines (28 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
/*
* This file is a part of the DiscordPHP-RFC9420 project.
*
* Copyright (c) 2026-present Valithor Obsidion <valithor@discordphp.org>
*
* This file is subject to the MIT license that is bundled
* with this source code in the LICENSE.md file.
*/
namespace MLS\Group;
use MLS\Commit\CommitInterface;
use MLS\Crypto\CipherSuiteInterface;
use MLS\Message\MLSMessageInterface;
use MLS\Proposal\ProposalInterface;
use MLS\Proposal\ProposalListInterface;
interface GroupInterface
{
public function getGroupId(): string;
public function getEpoch(): int;
public function getContext(): GroupContextInterface;
public function addMember(string $identity): ProposalInterface;
public function removeMember(string $identity): ProposalInterface;
public function commit(ProposalListInterface $proposals): CommitInterface;
public function applyCommit(CommitInterface $commit): void;
public function handleMessage(MLSMessageInterface $message): void;
public function getCipherSuite(): CipherSuiteInterface;
}