Total Complexity | 6 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class TextTransform |
||
8 | { |
||
9 | public const NAME = "text_transform"; |
||
10 | |||
11 | public const NONE = "none"; |
||
12 | public const CAPITALIZE = "capitalize"; |
||
13 | public const UPPERCASE = "uppercase"; |
||
14 | public const LOWERCASE = "lowercase"; |
||
15 | |||
16 | public const OPTIONS = [self::NONE, self::CAPITALIZE, self::UPPERCASE, self::LOWERCASE]; |
||
17 | |||
18 | /** |
||
19 | * @param string $value |
||
20 | * @param null $transform |
||
|
|||
21 | * @return mixed|string |
||
22 | */ |
||
23 | public static function transform($value, $transform = null) |
||
35 | } |
||
36 | } |