34 protected ThreadSafeArray $attachments;
36 public function __construct(){
37 $this->attachments =
new ThreadSafeArray();
41 $this->attachments[] = $attachment;
45 foreach($this->attachments as $i => $a){
46 if($attachment === $a){
47 unset($this->attachments[$i]);
52 public function removeAttachments() :
void{
53 foreach($this->attachments as $i => $a){
54 unset($this->attachments[$i]);
62 return (array) $this->attachments;