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