| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class StringElement extends LeafElement |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | * |
||
| 20 | * @return string|null |
||
| 21 | */ |
||
| 22 | 186 | protected function toPhp($httpValue): ?string |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 38 | protected function toHttp($phpValue): ?string |
|
| 35 | { |
||
| 36 | 38 | return $phpValue; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | * |
||
| 42 | * @return string|null |
||
| 43 | */ |
||
| 44 | 82 | protected function tryCast($value): ?string |
|
| 55 | } |
||
| 56 | } |
||
| 57 |