Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ContentIdentify | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
customizableSelect | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | namespace pvc\html\rules; |
4 | |
5 | use pvc\interfaces\html\dom\DomNodeInterface; |
6 | |
7 | /** |
8 | * |
9 | */ |
10 | class ContentIdentify |
11 | { |
12 | /** |
13 | * @param DomNodeInterface $node |
14 | * |
15 | * @return bool |
16 | */ |
17 | public static function customizableSelect(DomNodeInterface $node): bool |
18 | { |
19 | /** @var DomNodeInterface $firstChild */ |
20 | $firstChild = $node->getFirstChild(); |
21 | return ($node->getDomElement()->getName() == 'select') && ($firstChild->getDomElement()->getName() == 'button'); |
22 | } |
23 | |
24 | } |