| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait HasHeaders |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Gets a single header from an existing email by name. |
||
| 10 | * |
||
| 11 | * @param $headerName |
||
| 12 | * |
||
| 13 | * @param string $regex if this is set, value will be evaluated with the give regular expression. |
||
| 14 | * |
||
| 15 | * @return null|string |
||
| 16 | */ |
||
| 17 | public function getHeader($headerName, $regex = null) |
||
| 38 | } |
||
| 39 | |||
| 40 | public abstract function getHeaders(); |
||
| 41 | |||
| 43 |