/** * Constructs a Message. * * @param HeaderFactory $headerFactory */ public function __construct(HeaderFactory $headerFactory) { parent::__construct($headerFactory); $this->objectId = uniqid(); }
/** * Sets up a default Content-Type header of text/plain. * * @param HeaderFactory $headerFactory */ public function __construct(HeaderFactory $headerFactory) { parent::__construct($headerFactory); $this->setRawHeader('Content-Type', 'text/plain'); }