validation_extender = new ActualAddressAppsCheckValidation([ 'model' => $this ]); } public function formName() { return 'ActualAddressData'; } public static function find() { return parent::find()->where([ 'address_type' => self::ADDRESS_TYPE_ACTUAL ]); } public function rules() { return ArrayHelper::merge(parent::rules(), $this->validation_extender ? $this->validation_extender->getRules() : []); } public function getClassTypeForChangeHistory(): int { return ChangeHistoryClasses::CLASS_ACTUAL_ADDRESS_DATA; } public function getAddressTypeComputed(): int { return self::ADDRESS_TYPE_ACTUAL; } public function getValidatedName(): string { return Yii::t( 'abiturient/questionary/address-data', 'Валидационное имя модели: `Данные о адресе проживания`' ); } }