...
|
...
|
@@ -11,7 +11,7 @@ use Lib\Imap\Request\Msg; |
|
|
* Class Messager
|
|
|
* @package Lib\Imap\Parse
|
|
|
*/
|
|
|
class Messager implements \IteratorAggregate {
|
|
|
class Messager {
|
|
|
|
|
|
/**
|
|
|
* 原始数据
|
...
|
...
|
@@ -52,15 +52,6 @@ class Messager implements \IteratorAggregate { |
|
|
$this->parse();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 实现 使用 foreach功能
|
|
|
* @return \ArrayIterator
|
|
|
* @author:dc
|
|
|
* @time 2024/9/18 10:43
|
|
|
*/
|
|
|
public function getIterator() {
|
|
|
return new \ArrayIterator($this->item);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 解析
|
...
|
...
|
@@ -197,6 +188,14 @@ class Messager implements \IteratorAggregate { |
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @return MessageItem[]
|
|
|
* @author:dc
|
|
|
* @time 2024/9/23 14:11
|
|
|
*/
|
|
|
public function all():array {
|
|
|
return $this->item;
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
...
|
...
|
|