| Conditions | 5 |
| Paths | 6 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __construct(DOMElement $xml = null) |
||
| 17 | { |
||
| 18 | if (!empty($xml) && $xml->localName != self::LOCAL_NAME) { |
||
| 19 | $xml = $xml->ownerDocument->getElementsByTagNameNS(self::NS_EIDAS, self::LOCAL_NAME)->item(0); |
||
| 20 | } |
||
| 21 | if (empty($xml)) { |
||
| 22 | return; |
||
| 23 | } |
||
| 24 | parent::__construct($xml); |
||
| 25 | foreach ($xml->getElementsByTagNameNS(self::NS_EIDAS, EidasRequestedAttribute::LOCAL_NAME) as $requestedAttr) { |
||
| 26 | $this->requested_attributes[] = new EidasRequestedAttribute($requestedAttr); |
||
| 27 | } |
||
| 39 | } |