public function addObject($value, $blnAddToBeginning = false)
    {
        if ($blnAddToBeginning) {
            array_unshift($this->collection, $value);
        } else {
            array_push($this->collection, $value);
        }
    }
public function addObject($value, $blnAddToBeginning = false)
    {
        if ($blnAddToBeginning) {
            array_unshift($this->collection, $value);
        } else {
            array_push($this->collection, $value);
        }
    }
public function addObject ( $ value , $ blnAddToBeginning = false ) { if ( $ blnAddToBeginning ) { array_unshift ( $ this -> collection , $ value ) ; } else { array_push ( $ this -> collection , $ value ) ; } }
Add object to the collection

@param object $value The object
@param boolean $blnAddToBeginning Add object to beginning of array or not
Add object to the collection