100], [['name',], 'string', 'max' => 255], [['ref_key'], 'string', 'max' => 255], [['full_name'], 'string', 'max' => 1000], ]; } public function attributeLabels() { return [ 'code' => 'Код Страны', 'name' => 'Наименование', ]; } public function getDatacode() { return [ 'data-code' => $this->ref_key, ]; } public static function find() { return new DictionaryQuery(static::class); } public static function getArchiveColumn(): string { return 'archive'; } public static function getArchiveValue() { return true; } public function restoreDictionary() { (new BaseRestoreHandler($this, PersonalData::class, 'country_id')) ->setArchiveQuery(null) ->setModelRefTypeComparisonColumn(static::getUidColumnName()) ->restore(); (new BaseRestoreHandler($this, AddressData::class, 'country_id')) ->setArchiveQuery(null) ->setModelRefTypeComparisonColumn(static::getUidColumnName()) ->restore(); } public function fillDictionary() { } public static function getReferenceClassToFill(): string { return static::getReferenceClassName(); } }