| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class StrToUpper extends AbstractRule |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | 1 | * @inheritdoc |
|
| 20 | */ |
||
| 21 | 1 | public function apply(array $rowData, array &$transformedData, array $options = []): string |
|
| 22 | 1 | { |
|
| 23 | $value = $options['value']; |
||
| 24 | 1 | unset($options['value']); |
|
| 25 | |||
| 26 | return strtoupper($this->ruleApplier->apply($rowData, $transformedData, $value, $options)); |
||
|
|
|||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | 1 | * @inheritdoc |
|
| 31 | */ |
||
| 32 | 1 | public function validate(array $options): void |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | 1 | * @inheritdoc |
|
| 39 | */ |
||
| 40 | 1 | public function getRuleCode(): string |
|
| 43 | } |
||
| 44 | } |