protected function getPartComplete(&$part) { $body = ''; if ($this->stream) { $body = $this->getPartFromFile($part); } elseif ($this->data) { $body = $this->getPartFromText($part); } return $body; }