| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Constant extends AbstractRule |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Apply a certain rule and returns the result. |
||
| 17 | * |
||
| 18 | * @param array $rowData Data that is being trasformed. |
||
| 19 | * @param array $transformedData Transformed data at the current stage |
||
| 20 | * @param array $options Options to be used by the rule. |
||
| 21 | * |
||
| 22 | * @return string|null |
||
| 23 | */ |
||
| 24 | 1 | public function apply($rowData, &$transformedData, $options = []) |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | 1 | public function validate($options) |
|
| 33 | { |
||
| 34 | 1 | $this->requireOption('value', $options); |
|
| 35 | 1 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get unique code that needs to be used to apply this rule. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 1 | public function getRuleCode() |
|
| 45 | } |
||
| 46 | } |