Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| ContentModelNothing | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| getContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| canAcceptContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace pvc\html\content_model; |
| 4 | |
| 5 | use pvc\interfaces\html\content_model\ContentModelInterface; |
| 6 | use pvc\interfaces\html\dom\DomNodeInterface; |
| 7 | |
| 8 | /** |
| 9 | * @see https://html.spec.whatwg.org/multipage/dom.html#the-nothing-content-model |
| 10 | */ |
| 11 | class ContentModelNothing extends ContentModel implements ContentModelInterface |
| 12 | { |
| 13 | |
| 14 | protected function getContent(int $domain): int |
| 15 | { |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | public function canAcceptContent(DomNodeInterface $content): bool |
| 20 | { |
| 21 | return false; |
| 22 | } |
| 23 | } |