| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function getReferenceIdentifier(ModelElementInstanceInterface $referenceSourceElement) |
||
| 19 | { |
||
| 20 | $identifier = $referenceSourceElement->getAttributeValue("href"); |
||
| 21 | if ($identifier !== null) { |
||
| 22 | $parts = explode('#', $identifier); |
||
| 23 | if (count($parts) > 1) { |
||
| 24 | return $parts[count($parts) - 1]; |
||
| 25 | } else { |
||
| 26 | return $parts[0]; |
||
| 27 | } |
||
| 28 | } else { |
||
| 29 | return null; |
||
| 30 | } |
||
| 40 |