public function setOutcomeIdentifier($outcomeIdentifier)
    {
        if (Format::isIdentifier($outcomeIdentifier)) {
            $this->outcomeIdentifier = $outcomeIdentifier;
        } else {
            $msg = "'${outcomeIdentifier}' is not a valid QTI Identifier.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setOutcomeIdentifier($outcomeIdentifier)
    {
        if (Format::isIdentifier($outcomeIdentifier)) {
            $this->outcomeIdentifier = $outcomeIdentifier;
        } else {
            $msg = "'${outcomeIdentifier}' is not a valid QTI Identifier.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setOutcomeIdentifier ( $ outcomeIdentifier ) { if ( Format :: isIdentifier ( $ outcomeIdentifier ) ) { $ this -> outcomeIdentifier = $ outcomeIdentifier ; } else { $ msg = "'${outcomeIdentifier}' is not a valid QTI Identifier." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the outcome identifier.

@param string $outcomeIdentifier A QTI Identifier.
@throws \InvalidArgumentException If $outcomeIdentifier is not a valid QTI Identifier.
Set the outcome identifier .