original_string: protected function getValueFromModel($model)
      {
          if ( ! ($model instanceof Model)) {
              return null;
          }
  
          return get_class($model)
               . static::CLASS_AND_KEY_SEPARATOR
               . $model->getKey();
      }
code: protected function getValueFromModel($model)
      {
          if ( ! ($model instanceof Model)) {
              return null;
          }
  
          return get_class($model)
               . static::CLASS_AND_KEY_SEPARATOR
               . $model->getKey();
      }
code_tokens: protected function getValueFromModel ( $ model ) { if ( ! ( $ model instanceof Model ) ) { return null ; } return get_class ( $ model ) . static :: CLASS_AND_KEY_SEPARATOR . $ model -> getKey ( ) ; }
docstring: Returns the value for a single related model.
  
  @param Model|null $model
  @return mixed|null
docstring_tokens: Returns the value for a single related model .