Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class FilesStatuse extends ActiveRecord |
||
21 | { |
||
22 | /** |
||
23 | * @inheritdoc |
||
24 | */ |
||
25 | public static function tableName() |
||
26 | { |
||
27 | return 'import_files_statuses'; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function rules() |
||
34 | { |
||
35 | return ArrayHelper::merge(parent::rules(), [ |
||
36 | [['created', 'updated'], 'safe'], |
||
37 | [['name', 'key'], 'required'], |
||
38 | [['name', 'key'], 'string', 'max' => 255], |
||
39 | ]); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return \yii\db\ActiveQuery |
||
44 | */ |
||
45 | public function getFiles() |
||
48 | } |
||
49 | } |
||
50 |