original_string: protected function newHasOne(Builder $query, Model $parent, $foreignKey, $localKey)
      {
          return new HasOne($query, $parent, $foreignKey, $localKey);
      }
code: protected function newHasOne(Builder $query, Model $parent, $foreignKey, $localKey)
      {
          return new HasOne($query, $parent, $foreignKey, $localKey);
      }
code_tokens: protected function newHasOne ( Builder $ query , Model $ parent , $ foreignKey , $ localKey ) { return new HasOne ( $ query , $ parent , $ foreignKey , $ localKey ) ; }
docstring: Instantiate a new HasOne relationship.
  
  @param  \Illuminate\Database\Eloquent\Builder  $query
  @param  \Illuminate\Database\Eloquent\Model  $parent
  @param  string  $foreignKey
  @param  string  $localKey
  @return \Illuminate\Database\Eloquent\Relations\HasOne
docstring_tokens: Instantiate a new HasOne relationship .