src/PubSub/Consumer.php
private function genericSubscribeInit($subscribeAction)
    {
        if (isset($this->options[$subscribeAction])) {
            $this->$subscribeAction($this->options[$subscribeAction]);
        }
    }
private function genericSubscribeInit($subscribeAction)
    {
        if (isset($this->options[$subscribeAction])) {
            $this->$subscribeAction($this->options[$subscribeAction]);
        }
    }
private function genericSubscribeInit ( $ subscribeAction ) { if ( isset ( $ this -> options [ $ subscribeAction ] ) ) { $ this -> $ subscribeAction ( $ this -> options [ $ subscribeAction ] ) ; } }
This method shares the logic to handle both SUBSCRIBE and PSUBSCRIBE.

@param string $subscribeAction Type of subscription.
This method shares the logic to handle both SUBSCRIBE and PSUBSCRIBE .