original_string: protected function getReferenceValue(Model $model, $strategy = null, $source = null)
      {
          $strategy = $this->determineModelReferenceStrategy($model, $strategy);
  
          // If we have no strategy at all to fall back on, use a hard-coded reference
          if ( ! $strategy) {
              return $this->getReferenceFallback($model);
          }
  
          if ( ! $source) {
              $source = $this->determineModelReferenceSource($model);
          }
  
          return $strategy->render($model, $source);
      }
code: protected function getReferenceValue(Model $model, $strategy = null, $source = null)
      {
          $strategy = $this->determineModelReferenceStrategy($model, $strategy);
  
          // If we have no strategy at all to fall back on, use a hard-coded reference
          if ( ! $strategy) {
              return $this->getReferenceFallback($model);
          }
  
          if ( ! $source) {
              $source = $this->determineModelReferenceSource($model);
          }
  
          return $strategy->render($model, $source);
      }
code_tokens: protected function getReferenceValue ( Model $ model , $ strategy = null , $ source = null ) { $ strategy = $ this -> determineModelReferenceStrategy ( $ model , $ strategy ) ; // If we have no strategy at all to fall back on, use a hard-coded reference if ( ! $ strategy ) { return $ this -> getReferenceFallback ( $ model ) ; } if ( ! $ source ) { $ source = $ this -> determineModelReferenceSource ( $ model ) ; } return $ strategy -> render ( $ model , $ source ) ; }
docstring: Returns the model reference as a string.
  
  @param Model       $model
  @param string|null $strategy optional reference strategy that overrides default
  @param string|null $source   optional reference source that overrides default
  @return string
docstring_tokens: Returns the model reference as a string .