original_string: protected function requestData() : array
      {
          switch ($this->method) {
              case 'post':
                  return Yii::$app->request->post();
              case 'get':
                  return Yii::$app->request->getQueryParams();
              default:
                  throw new InvalidConfigException('Request method is not defined');
          }
      }
code: protected function requestData() : array
      {
          switch ($this->method) {
              case 'post':
                  return Yii::$app->request->post();
              case 'get':
                  return Yii::$app->request->getQueryParams();
              default:
                  throw new InvalidConfigException('Request method is not defined');
          }
      }
code_tokens: protected function requestData ( ) : array { switch ( $ this -> method ) { case 'post' : return Yii :: $ app -> request -> post ( ) ; case 'get' : return Yii :: $ app -> request -> getQueryParams ( ) ; default : throw new InvalidConfigException ( 'Request method is not defined' ) ; } }
docstring: Get request data params.
  @return array
  @throws \yii\base\InvalidConfigException
docstring_tokens: Get request data params .