public function __construct($body = '', $type = null) { if ($type) { $this->type = $type; } $this->body = $body; }