original_string: public function addObject($value, $blnAddToBeginning = false)
      {
          if ($blnAddToBeginning) {
              array_unshift($this->collection, $value);
          } else {
              array_push($this->collection, $value);
          }
      }
code: public function addObject($value, $blnAddToBeginning = false)
      {
          if ($blnAddToBeginning) {
              array_unshift($this->collection, $value);
          } else {
              array_push($this->collection, $value);
          }
      }
code_tokens: public function addObject ( $ value , $ blnAddToBeginning = false ) { if ( $ blnAddToBeginning ) { array_unshift ( $ this -> collection , $ value ) ; } else { array_push ( $ this -> collection , $ value ) ; } }
docstring: Add object to the collection
  
  @param object $value The object
  @param boolean $blnAddToBeginning Add object to beginning of array or not
docstring_tokens: Add object to the collection