$value) { if (property_exists($this, $key)) { $this->$key = $value; $this->exports[] = $key; } } } /** * The content type of the attachment. * * @param string $type */ public function setContentType($type) { $this->content_type = $type; } /** * The body of the attachment in serialized JSON. * * @param string $body */ public function setBody($body) { $this->body = $body; } }