original_string: public function getLocation($column)
      {
          $model = self::select(DB::Raw('ST_AsText('.$column.') AS '.$column))
              ->where('id', $this->id)
              ->first();
  
          return isset($model) ? $model->$column : '';
      }
code: public function getLocation($column)
      {
          $model = self::select(DB::Raw('ST_AsText('.$column.') AS '.$column))
              ->where('id', $this->id)
              ->first();
  
          return isset($model) ? $model->$column : '';
      }
code_tokens: public function getLocation ( $ column ) { $ model = self :: select ( DB :: Raw ( 'ST_AsText(' . $ column . ') AS ' . $ column ) ) -> where ( 'id' , $ this -> id ) -> first ( ) ; return isset ( $ model ) ? $ model -> $ column : '' ; }
docstring: Get location as WKT from Geometry for given field.
  
  @param string $column
  
  @return string
docstring_tokens: Get location as WKT from Geometry for given field .