public function removeOutcome(OutcomeDeclaration $outcome){
        $returnValue = (bool) false;

        if(!is_null($outcome)){
            if(isset($this->outcomes[$outcome->getSerial()])){
                unset($this->outcomes[$outcome->getSerial()]);
                $returnValue = true;
            }
        }else{
            common_Logger::w('Tried to remove null outcome');
        }

        if(!$returnValue){
            common_Logger::w('outcome not found '.$outcome->getSerial());
        }

        return (bool) $returnValue;
    }
public function removeOutcome(OutcomeDeclaration $outcome){
        $returnValue = (bool) false;

        if(!is_null($outcome)){
            if(isset($this->outcomes[$outcome->getSerial()])){
                unset($this->outcomes[$outcome->getSerial()]);
                $returnValue = true;
            }
        }else{
            common_Logger::w('Tried to remove null outcome');
        }

        if(!$returnValue){
            common_Logger::w('outcome not found '.$outcome->getSerial());
        }

        return (bool) $returnValue;
    }
public function removeOutcome ( OutcomeDeclaration $ outcome ) { $ returnValue = ( bool ) false ; if ( ! is_null ( $ outcome ) ) { if ( isset ( $ this -> outcomes [ $ outcome -> getSerial ( ) ] ) ) { unset ( $ this -> outcomes [ $ outcome -> getSerial ( ) ] ) ; $ returnValue = true ; } } else { common_Logger :: w ( 'Tried to remove null outcome' ) ; } if ( ! $ returnValue ) { common_Logger :: w ( 'outcome not found ' . $ outcome -> getSerial ( ) ) ; } return ( bool ) $ returnValue ; }
Short description of method removeOutcome

@access public
@author Sam, <sam@taotesting.com>
@param OutcomeDeclaration $outcome
@return bool
Short description of method removeOutcome