1 | <?php |
||
10 | final class PlainTextMessage implements MessageInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var MessageInterface |
||
14 | */ |
||
15 | private $decoratedMessage; |
||
16 | |||
17 | /** |
||
18 | * @param string $text |
||
19 | * @param string $charset |
||
20 | */ |
||
21 | 22 | public function __construct(string $text, string $charset = 'UTF-8') |
|
35 | |||
36 | /** |
||
37 | * @return iterable<iterable<HeaderInterface>> |
||
|
|||
38 | */ |
||
39 | 7 | public function getHeaders(): iterable |
|
43 | |||
44 | /** |
||
45 | * @param string $name |
||
46 | * @return bool |
||
47 | */ |
||
48 | 2 | public function hasHeader(string $name): bool |
|
52 | |||
53 | /** |
||
54 | * @param string $name |
||
55 | * @return iterable|HeaderInterface[] |
||
56 | */ |
||
57 | 2 | public function getHeader(string $name): iterable |
|
61 | |||
62 | /** |
||
63 | * @param HeaderInterface $header |
||
64 | * @return MessageInterface |
||
65 | */ |
||
66 | 9 | public function withHeader(HeaderInterface $header): MessageInterface |
|
72 | |||
73 | /** |
||
74 | * @param HeaderInterface $header |
||
75 | * @return MessageInterface |
||
76 | */ |
||
77 | 1 | public function withAddedHeader(HeaderInterface $header): MessageInterface |
|
83 | |||
84 | /** |
||
85 | * @param string $name |
||
86 | * @return MessageInterface |
||
87 | */ |
||
88 | 1 | public function withoutHeader(string $name): MessageInterface |
|
94 | |||
95 | /** |
||
96 | * @return StreamInterface |
||
97 | */ |
||
98 | 7 | public function getBody(): StreamInterface |
|
102 | |||
103 | /** |
||
104 | * @param StreamInterface $body |
||
105 | * @return MessageInterface |
||
106 | */ |
||
107 | 1 | public function withBody(StreamInterface $body): MessageInterface |
|
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | 8 | public function __toString(): string |
|
121 | } |
||
122 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.