| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Attributes extends SetOfAttributes |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Mapping from OID to attribute value class name. |
||
| 20 | * |
||
| 21 | * @internal |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | const MAP_OID_TO_CLASS = [ |
||
| 26 | ExtensionRequestValue::OID => ExtensionRequestValue::class, |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Check whether extension request attribute is present. |
||
| 31 | * |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | 6 | public function hasExtensionRequest(): bool |
|
| 35 | { |
||
| 36 | 6 | return $this->has(ExtensionRequestValue::OID); |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get extension request attribute value. |
||
| 41 | * |
||
| 42 | * @throws \LogicException |
||
| 43 | * |
||
| 44 | * @return ExtensionRequestValue |
||
| 45 | */ |
||
| 46 | 4 | public function extensionRequest(): ExtensionRequestValue |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 4 | protected static function _castAttributeValues(Attribute $attribute): Attribute |
|
| 64 | } |
||
| 65 | } |
||
| 66 |