Example #1
0
 /**
  * @return array
  */
 protected function getData()
 {
     if (empty($this->data) && $this->mailparse instanceof Mailparse) {
         $this->data = $this->mailparse->getPartData();
         $this->headers = new HeaderFieldList($this->data['headers'] ?? []);
     }
     return $this->data;
 }
Example #2
0
 /**
  * @param string $text Gzip encoded text
  *
  * @return $this
  */
 public function setText(string $text)
 {
     return parent::setText(gzdecode($text));
 }