protected function getParam($name, $defaultValue = null)
    {
        return $this->requestMethod == self::REQUEST_METHOD_GET ?
            Yii::$app->request->getQueryParam($name, $defaultValue) :
            Yii::$app->request->getBodyParam($name, $defaultValue);
    }
protected function getParam($name, $defaultValue = null)
    {
        return $this->requestMethod == self::REQUEST_METHOD_GET ?
            Yii::$app->request->getQueryParam($name, $defaultValue) :
            Yii::$app->request->getBodyParam($name, $defaultValue);
    }
protected function getParam ( $ name , $ defaultValue = null ) { return $ this -> requestMethod == self :: REQUEST_METHOD_GET ? Yii :: $ app -> request -> getQueryParam ( $ name , $ defaultValue ) : Yii :: $ app -> request -> getBodyParam ( $ name , $ defaultValue ) ; }
Extract param from request
@param $name
@param null $defaultValue
@return mixed
Extract param from request