| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class BooleanAttribute extends AttributeImpl |
||
| 9 | { |
||
| 10 | public function __construct(ModelElementTypeInterface $owningElementType) |
||
| 11 | { |
||
| 12 | parent::__construct($owningElementType); |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return mixed |
||
| 17 | */ |
||
| 18 | protected function convertXmlValueToModelValue(?string $rawValue) |
||
| 19 | { |
||
| 20 | return ModelUtil::valueAsBoolean($rawValue); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $modelValue; |
||
| 25 | */ |
||
| 26 | protected function convertModelValueToXmlValue($modelValue): string |
||
| 29 | } |
||
| 30 | } |
||
| 31 |