original_string: protected function wrapSegments($segments)
      {
          return collect($segments)->map(function ($segment, $key) use ($segments) {
              return $key == 0 && count($segments) > 1
                              ? $this->wrapTable($segment)
                              : $this->wrapValue($segment);
          })->implode('.');
      }
code: protected function wrapSegments($segments)
      {
          return collect($segments)->map(function ($segment, $key) use ($segments) {
              return $key == 0 && count($segments) > 1
                              ? $this->wrapTable($segment)
                              : $this->wrapValue($segment);
          })->implode('.');
      }
code_tokens: protected function wrapSegments ( $ segments ) { return collect ( $ segments ) -> map ( function ( $ segment , $ key ) use ( $ segments ) { return $ key == 0 && count ( $ segments ) > 1 ? $ this -> wrapTable ( $ segment ) : $ this -> wrapValue ( $ segment ) ; } ) -> implode ( '.' ) ; }
docstring: Wrap the given value segments.
  
  @param  array  $segments
  @return string
docstring_tokens: Wrap the given value segments .