private function getLaunchDataParameter(LtiLaunchData $data, $name) {
        if ($data->hasVariable($name)) {
            return $data->getVariable($name);
        }

        throw new LtiVariableMissingException($name);
    }
private function getLaunchDataParameter(LtiLaunchData $data, $name) {
        if ($data->hasVariable($name)) {
            return $data->getVariable($name);
        }

        throw new LtiVariableMissingException($name);
    }
private function getLaunchDataParameter ( LtiLaunchData $ data , $ name ) { if ( $ data -> hasVariable ( $ name ) ) { return $ data -> getVariable ( $ name ) ; } throw new LtiVariableMissingException ( $ name ) ; }
Get launch data parameter by name.

@param LtiLaunchData $data
@param $name
@return mixed
@throws LtiVariableMissingException
Get launch data parameter by name .