Folders.php
668 字节
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
<?php
namespace Lib\Imap\Request;
use Lib\Imap\Imap;
/**
* 文件夹列表
* @author:dc
* @time 2024/9/19 13:56
* Class Folders
* @package Lib\Imap\Request
*/
class Folders extends Request{
public function __construct(Imap $imap)
{
parent::__construct($imap);
$this->exec();
}
public function exec(): static
{
$this->cmd('LIST "" *');
return $this;
}
/**
* @return \Lib\Imap\Parse\Folder\Folders
* @author:dc
* @time 2024/9/20 10:24
*/
public function get():\Lib\Imap\Parse\Folder\Folders {
return new \Lib\Imap\Parse\Folder\Folders($this->result);
}
}