original_string: protected function analyzeForTranslatable()
      {
          /** @var Model|Translatable $model */
          $model = $this->model;
  
          $translationModel = $model->getTranslationModelName();
  
          $this->info = $this->analyzer->analyze($translationModel);
  
          $attributes = $this->info['attributes'];
  
          foreach ($attributes as $key => $attribute) {
              if ( ! $model->isTranslationAttribute($key)) continue;
  
              // mark the fields as translated for merging by model analyzer
              $attributes[$key]['translated'] = true;
          }
  
          $this->info['attributes'] = $attributes;
      }
code: protected function analyzeForTranslatable()
      {
          /** @var Model|Translatable $model */
          $model = $this->model;
  
          $translationModel = $model->getTranslationModelName();
  
          $this->info = $this->analyzer->analyze($translationModel);
  
          $attributes = $this->info['attributes'];
  
          foreach ($attributes as $key => $attribute) {
              if ( ! $model->isTranslationAttribute($key)) continue;
  
              // mark the fields as translated for merging by model analyzer
              $attributes[$key]['translated'] = true;
          }
  
          $this->info['attributes'] = $attributes;
      }
code_tokens: protected function analyzeForTranslatable ( ) { /** @var Model|Translatable $model */ $ model = $ this -> model ; $ translationModel = $ model -> getTranslationModelName ( ) ; $ this -> info = $ this -> analyzer -> analyze ( $ translationModel ) ; $ attributes = $ this -> info [ 'attributes' ] ; foreach ( $ attributes as $ key => $ attribute ) { if ( ! $ model -> isTranslationAttribute ( $ key ) ) continue ; // mark the fields as translated for merging by model analyzer $ attributes [ $ key ] [ 'translated' ] = true ; } $ this -> info [ 'attributes' ] = $ attributes ; }
docstring: Analyzes a model using the translatable trait strategy.
docstring_tokens: Analyzes a model using the translatable trait strategy .