code: public function getForeignModel($model)
      {
          $models = $this->foreignModels;
          if (isset($models[$model])) {
              return $models[$model];
          }
  
          return false;
      }
docs: Get foreign model.
  
  @param [[@doctodo param_type:model]] $model [[@doctodo param_description:model]]
  
  @return [[@doctodo return_type:getForeignModel]] [[@doctodo return_description:getForeignModel]]