original_string: public function append($query, $args = null)
      {
          if ($query instanceof PDBquery) {
              $args = $query->getArgs();
              $query = $query->getQuery();
          };
          $this->_query .= ' ' . $query;
          if (is_array($args)) {
              foreach ($args as $arg) {
                  $this->_args[] = $arg;  // Faster than array_merge() which copies
              };
          } elseif ($args !== null) {
              $this->_args[] = $args;
          };
          return $this;
      }
code: public function append($query, $args = null)
      {
          if ($query instanceof PDBquery) {
              $args = $query->getArgs();
              $query = $query->getQuery();
          };
          $this->_query .= ' ' . $query;
          if (is_array($args)) {
              foreach ($args as $arg) {
                  $this->_args[] = $arg;  // Faster than array_merge() which copies
              };
          } elseif ($args !== null) {
              $this->_args[] = $args;
          };
          return $this;
      }
code_tokens: public function append ( $ query , $ args = null ) { if ( $ query instanceof PDBquery ) { $ args = $ query -> getArgs ( ) ; $ query = $ query -> getQuery ( ) ; } ; $ this -> _query .= ' ' . $ query ; if ( is_array ( $ args ) ) { foreach ( $ args as $ arg ) { $ this -> _args [ ] = $ arg ; // Faster than array_merge() which copies } ; } elseif ( $ args !== null ) { $ this -> _args [ ] = $ args ; } ; return $ this ; }
docstring: Append to current query
  
  @param string|object $query String portion or other query
  @param array         $args  (Optional) List of arguments
  
  @return object PDBquery this same object, for chaining
docstring_tokens: Append to current query