1 | <?php |
||
25 | class MultilanguageValidateComponent extends Component implements ValidateComponentInterface |
||
26 | { |
||
27 | /** |
||
28 | * Array of models with multilanguage fields. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | public $models = []; |
||
33 | |||
34 | /** |
||
35 | * Sets a specific model for the general validation model. |
||
36 | * |
||
37 | * @param ActiveRecordInterface $mainModel |
||
38 | * |
||
39 | * @throws InvalidConfigException |
||
40 | * |
||
41 | * @return ModelInterface |
||
42 | */ |
||
43 | public function setModel(ActiveRecordInterface $mainModel): ModelInterface |
||
61 | } |
||
62 |