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');
        }
    }
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');
        }
    }
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' ) ; } }
Get request data params.
@return array
@throws \yii\base\InvalidConfigException
Get request data params .