Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
16 | 135 | protected function fillTypeNode(Type $type, DOMElement $node, $checkAbstract = false) |
|
17 | { |
||
18 | 135 | if ($checkAbstract) { |
|
19 | 135 | $type->setAbstract($node->getAttribute('abstract') === 'true' || $node->getAttribute('abstract') === '1'); |
|
20 | 45 | } |
|
21 | 90 | static $methods = [ |
|
22 | 'restriction' => 'loadRestriction', |
||
23 | 'extension' => 'maybeLoadExtensionFromBaseComplexType', |
||
24 | 'simpleContent' => 'fillTypeNode', |
||
25 | 'complexContent' => 'fillTypeNode', |
||
26 | 45 | ]; |
|
27 | |||
28 | /** |
||
29 | * @var string[] |
||
30 | */ |
||
31 | 135 | $methods = $methods; |
|
32 | |||
33 | 135 | $this->maybeCallMethodAgainstDOMNodeList($node, $type, $methods); |
|
34 | 135 | } |
|
57 |