| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 19 | trait HeaderTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * optional extra headers to add to the message (most headers are allowed) |
||
| 23 | * |
||
| 24 | * @var array $headers |
||
| 25 | */ |
||
| 26 | protected $headers = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * set an optional header to add to the message (most headers are allowed) |
||
| 30 | * |
||
| 31 | * @param string $header |
||
| 32 | * @param $content |
||
| 33 | */ |
||
| 34 | public function addHeader(string $header, $content) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getHeaders() |
||
| 47 |