/** * @return string */ public function toString() { $out = $this->leader; $out .= $this->tag; if ($this->parts != null) { $out .= $this->parts->toString(); } else { $out .= $this->body; } $out .= $this->end; if ($this->more != null) { $out .= $this->more->toString(); } else { $out .= $this->trailer; } return $out; }