public function setOutcomes($outcomes){
        $this->outcomes = array();
        foreach($outcomes as $outcome){
            if(!$outcome instanceof OutcomeDeclaration){
                throw new \InvalidArgumentException("wrong entry in outcomes list");
            }
            $this->addOutcome($outcome);
        }
    }
public function setOutcomes($outcomes){
        $this->outcomes = array();
        foreach($outcomes as $outcome){
            if(!$outcome instanceof OutcomeDeclaration){
                throw new \InvalidArgumentException("wrong entry in outcomes list");
            }
            $this->addOutcome($outcome);
        }
    }
public function setOutcomes ( $ outcomes ) { $ this -> outcomes = array ( ) ; foreach ( $ outcomes as $ outcome ) { if ( ! $ outcome instanceof OutcomeDeclaration ) { throw new \ InvalidArgumentException ( "wrong entry in outcomes list" ) ; } $ this -> addOutcome ( $ outcome ) ; } }
Short description of method setOutcomes

@access public
@author Sam, <sam@taotesting.com>
@param
array outcomes
@return mixed
@throws InvalidArgumentException
Short description of method setOutcomes