for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This file is part of the theroadbunch/mandrill-sdk package.
*
* (c) Dan McAdams <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RoadBunch\Mandrill;
* Trait HeaderTrait
* @package RoadBunch\Mandrill
trait HeaderTrait
{
* optional extra headers to add to the message (most headers are allowed)
* @var array $headers
protected $headers = [];
* set an optional header to add to the message (most headers are allowed)
* @param string $header
* @param $content
public function addHeader(string $header, $content)
$this->headers[$header] = $content;
}
* @return array
public function getHeaders()
return $this->headers;