original_string: protected static function makeStatement($statement)
      {
          $self  = self::getInstance();
  
          $optionWhere = (!empty($self->optionWhere)) ? " WHERE ". substr(implode("", $self->optionWhere), 4) : null;
          $optionJoin  = implode("", $self->optionJoin);
          $optionOrder = $self->optionOrder;
          $optionLimit = $self->optionLimit;
  
          return $statement.$optionJoin.$optionWhere.$optionOrder.$optionLimit;
      }
code: protected static function makeStatement($statement)
      {
          $self  = self::getInstance();
  
          $optionWhere = (!empty($self->optionWhere)) ? " WHERE ". substr(implode("", $self->optionWhere), 4) : null;
          $optionJoin  = implode("", $self->optionJoin);
          $optionOrder = $self->optionOrder;
          $optionLimit = $self->optionLimit;
  
          return $statement.$optionJoin.$optionWhere.$optionOrder.$optionLimit;
      }
code_tokens: protected static function makeStatement ( $ statement ) { $ self = self :: getInstance ( ) ; $ optionWhere = ( ! empty ( $ self -> optionWhere ) ) ? " WHERE " . substr ( implode ( "" , $ self -> optionWhere ) , 4 ) : null ; $ optionJoin = implode ( "" , $ self -> optionJoin ) ; $ optionOrder = $ self -> optionOrder ; $ optionLimit = $ self -> optionLimit ; return $ statement . $ optionJoin . $ optionWhere . $ optionOrder . $ optionLimit ; }
docstring: Make Query Statement
  
  @param  string $statement
  @return string
docstring_tokens: Make Query Statement