Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
21 | class CodeData extends Model |
||
22 | { |
||
23 | // Public Properties |
||
24 | // ========================================================================= |
||
25 | |||
26 | /** |
||
27 | * @var string The value of the Code Editor field |
||
28 | */ |
||
29 | public string $value = ''; |
||
30 | |||
31 | /** |
||
32 | * @var string The language of the Code Editor field |
||
33 | */ |
||
34 | public string $language = 'javascript'; |
||
35 | |||
36 | // Public Methods |
||
37 | // ========================================================================= |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function __toString(): string |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function init(): void |
||
51 | { |
||
52 | parent::init(); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function rules(): array |
||
67 | } |
||
68 | } |
||
69 |