Skip to content

Commit 0196d65

Browse files
committed
several getter methods added
1 parent bbac189 commit 0196d65

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

src/IMAP/Message.php

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,109 @@ public function restore(){
567567
public function getAttachments(){
568568
return collect($this->attachments);
569569
}
570+
571+
/**
572+
* @return Client
573+
*/
574+
public function getClient() {
575+
return $this->client;
576+
}
577+
578+
/**
579+
* @return string
580+
*/
581+
public function getUid() {
582+
return $this->uid;
583+
}
584+
585+
/**
586+
* @return string
587+
*/
588+
public function getFetchOptions() {
589+
return $this->fetch_options;
590+
}
591+
592+
/**
593+
* @return int
594+
*/
595+
public function getMsglist() {
596+
return $this->msglist;
597+
}
598+
599+
/**
600+
* @return mixed
601+
*/
602+
public function getMessageId() {
603+
return $this->message_id;
604+
}
605+
606+
/**
607+
* @return int
608+
*/
609+
public function getMessageNo() {
610+
return $this->message_no;
611+
}
612+
613+
/**
614+
* @return string
615+
*/
616+
public function getSubject() {
617+
return $this->subject;
618+
}
619+
620+
/**
621+
* @return null
622+
*/
623+
public function getDate() {
624+
return $this->date;
625+
}
626+
627+
/**
628+
* @return array
629+
*/
630+
public function getFrom() {
631+
return $this->from;
632+
}
633+
634+
/**
635+
* @return array
636+
*/
637+
public function getTo() {
638+
return $this->to;
639+
}
640+
641+
/**
642+
* @return array
643+
*/
644+
public function getCc() {
645+
return $this->cc;
646+
}
647+
648+
/**
649+
* @return array
650+
*/
651+
public function getBcc() {
652+
return $this->bcc;
653+
}
654+
655+
/**
656+
* @return array
657+
*/
658+
public function getReplyTo() {
659+
return $this->reply_to;
660+
}
661+
662+
/**
663+
* @return array
664+
*/
665+
public function getSender() {
666+
return $this->sender;
667+
}
668+
669+
/**
670+
* @return mixed
671+
*/
672+
public function getBodies() {
673+
return $this->bodies;
674+
}
570675
}

0 commit comments

Comments
 (0)