/** * @param BodyType|string $body * @return MessageType */ public function setBody($body) { if (is_string($body)) { $body = new BodyType($body); } return parent::setBody($body); }