protected function getRequestModel($requestData)
    {
        $requestModel = new RequestModel();
        $requestModel->attributes = $requestData;

        if (!$requestModel->validate()) {
            throw new ValidationException('Invalid JSON-RPC request parameters.', 0, $requestModel->getErrors());
        }

        return $requestModel;
    }
protected function getRequestModel($requestData)
    {
        $requestModel = new RequestModel();
        $requestModel->attributes = $requestData;

        if (!$requestModel->validate()) {
            throw new ValidationException('Invalid JSON-RPC request parameters.', 0, $requestModel->getErrors());
        }

        return $requestModel;
    }
protected function getRequestModel ( $ requestData ) { $ requestModel = new RequestModel ( ) ; $ requestModel -> attributes = $ requestData ; if ( ! $ requestModel -> validate ( ) ) { throw new ValidationException ( 'Invalid JSON-RPC request parameters.' , 0 , $ requestModel -> getErrors ( ) ) ; } return $ requestModel ; }
Creates and validates JSON-RPC request model
@param array $requestData
@return RequestModel
@throws \yii\web\BadRequestHttpException
Creates and validates JSON - RPC request model