1 | <?php |
||
4 | trait MessageTrait |
||
5 | { |
||
6 | use \GuzzleHttp\Psr7\MessageTrait; |
||
7 | |||
8 | protected $recipients = []; |
||
9 | public function withHeader($name, $value) |
||
13 | |||
14 | public function withAddedHeader($name, $value) |
||
21 | |||
22 | public function getHeaderLine($name) { |
||
25 | |||
26 | public function getHeader($header) |
||
37 | |||
38 | public function getHeaders() { |
||
41 | |||
42 | public function hasHeader($header) |
||
46 | |||
47 | public function withoutHeader($header) |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function withRecipient($email, $name = null) |
||
59 | |||
60 | public function withRecipients(array $recipients) |
||
66 | |||
67 | public function withAddedRecipient($email, $name = null) |
||
73 | |||
74 | /** |
||
75 | * Return an instance with the provided recipients added to the original recipient(s). |
||
76 | * |
||
77 | * This method MUST be implemented in such a way as to retain the |
||
78 | * immutability of the message, and MUST return an instance that has the |
||
79 | * new and/or updated header and value. |
||
80 | * |
||
81 | * @return self |
||
82 | * @param array $recipients Array of email => name pairs. |
||
83 | * @throws \InvalidArgumentException for invalid email. |
||
84 | */ |
||
85 | public function withAddedRecipients(array $recipients) |
||
91 | |||
92 | |||
93 | } |
||
94 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.