| Total Complexity | 1 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class IDValue extends BaseIDValue implements AttributeTypeInterface |
||
| 16 | { |
||
| 17 | public const string SCHEMA_TYPE = 'xs:ID'; |
||
|
|
|||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * Convert this value to an attribute |
||
| 22 | * |
||
| 23 | * @return \SimpleSAML\XML\Attribute |
||
| 24 | */ |
||
| 25 | public function toAttribute(): Attribute |
||
| 26 | { |
||
| 27 | return new Attribute(C::NS_XML, 'xml', 'id', $this); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |