original_string: protected function wrapAliasedValue($value, $prefixAlias = false)
      {
          $segments = preg_split('/\s+as\s+/i', $value);
  
          // If we are wrapping a table we need to prefix the alias with the table prefix
          // as well in order to generate proper syntax. If this is a column of course
          // no prefix is necessary. The condition will be true when from wrapTable.
          if ($prefixAlias) {
              $segments[1] = $this->tablePrefix.$segments[1];
          }
  
          return $this->wrap(
              $segments[0]).' as '.$this->wrapValue($segments[1]
          );
      }
code: protected function wrapAliasedValue($value, $prefixAlias = false)
      {
          $segments = preg_split('/\s+as\s+/i', $value);
  
          // If we are wrapping a table we need to prefix the alias with the table prefix
          // as well in order to generate proper syntax. If this is a column of course
          // no prefix is necessary. The condition will be true when from wrapTable.
          if ($prefixAlias) {
              $segments[1] = $this->tablePrefix.$segments[1];
          }
  
          return $this->wrap(
              $segments[0]).' as '.$this->wrapValue($segments[1]
          );
      }
code_tokens: protected function wrapAliasedValue ( $ value , $ prefixAlias = false ) { $ segments = preg_split ( '/\s+as\s+/i' , $ value ) ; // If we are wrapping a table we need to prefix the alias with the table prefix // as well in order to generate proper syntax. If this is a column of course // no prefix is necessary. The condition will be true when from wrapTable. if ( $ prefixAlias ) { $ segments [ 1 ] = $ this -> tablePrefix . $ segments [ 1 ] ; } return $ this -> wrap ( $ segments [ 0 ] ) . ' as ' . $ this -> wrapValue ( $ segments [ 1 ] ) ; }
docstring: Wrap a value that has an alias.
  
  @param  string  $value
  @param  bool  $prefixAlias
  @return string
docstring_tokens: Wrap a value that has an alias .