1 | <?php |
||
12 | final class HtmlPart implements PartInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var PartInterface |
||
16 | */ |
||
17 | private $decoratedPart; |
||
18 | |||
19 | /** |
||
20 | * @param string $html |
||
21 | * @param string $charset |
||
22 | */ |
||
23 | 22 | public function __construct(string $html, string $charset = 'UTF-8') |
|
37 | |||
38 | /** |
||
39 | * @return iterable<HeaderInterface> |
||
|
|||
40 | */ |
||
41 | 17 | public function getHeaders(): iterable |
|
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * @return bool |
||
49 | */ |
||
50 | 1 | public function hasHeader(string $name): bool |
|
54 | |||
55 | /** |
||
56 | * @param string $name |
||
57 | * @return HeaderInterface |
||
58 | */ |
||
59 | 18 | public function getHeader(string $name): HeaderInterface |
|
63 | |||
64 | /** |
||
65 | * @param HeaderInterface $header |
||
66 | * @return PartInterface |
||
67 | */ |
||
68 | 1 | public function withHeader(HeaderInterface $header): PartInterface |
|
74 | |||
75 | /** |
||
76 | * @param string $name |
||
77 | * @return PartInterface |
||
78 | */ |
||
79 | 1 | public function withoutHeader(string $name): PartInterface |
|
85 | |||
86 | /** |
||
87 | * @param StreamInterface $body |
||
88 | * @return PartInterface |
||
89 | */ |
||
90 | 1 | public function withBody(StreamInterface $body): PartInterface |
|
94 | |||
95 | /** |
||
96 | * @return StreamInterface |
||
97 | */ |
||
98 | 17 | public function getBody(): StreamInterface |
|
102 | } |
||
103 |
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.