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