forked from DirectoryTree/ImapEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFolderInterface.php
More file actions
78 lines (63 loc) · 1.54 KB
/
FolderInterface.php
File metadata and controls
78 lines (63 loc) · 1.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
namespace DirectoryTree\ImapEngine;
interface FolderInterface
{
/**
* Get the folder's mailbox.
*/
public function mailbox(): MailboxInterface;
/**
* Get the folder path.
*/
public function path(): string;
/**
* Get the folder flags.
*
* @return string[]
*/
public function flags(): array;
/**
* Get the folder delimiter.
*/
public function delimiter(): string;
/**
* Get the folder name.
*/
public function name(): string;
/**
* Determine if the current folder is the same as the given.
*/
public function is(FolderInterface $folder): bool;
/**
* Begin querying for messages.
*/
public function messages(): MessageQuery;
/**
* Begin idling on the current folder.
*/
public function idle(callable $callback, ?callable $query = null, int $timeout = 300): void;
/**
* Move or rename the current folder.
*/
public function move(string $newPath): void;
/**
* Select the current folder.
*/
public function select(bool $force = false): void;
/**
* Get the folder's status.
*/
public function status(): array;
/**
* Examine the current folder and get detailed status information.
*/
public function examine(): array;
/**
* Expunge the mailbox and return the expunged message sequence numbers.
*/
public function expunge(): array;
/**
* Delete the current folder.
*/
public function delete(): void;
}