public function getSubscription()
    {
        if ($this->getGateway() instanceof GatewayInterface) {
            return $this->getGateway()->getSubscriptionByReference($this->getSubscriptionReference());
        }

        throw new RuntimeException('Gateway is not set');
    }
public function getSubscription()
    {
        if ($this->getGateway() instanceof GatewayInterface) {
            return $this->getGateway()->getSubscriptionByReference($this->getSubscriptionReference());
        }

        throw new RuntimeException('Gateway is not set');
    }
public function getSubscription ( ) { if ( $ this -> getGateway ( ) instanceof GatewayInterface ) { return $ this -> getGateway ( ) -> getSubscriptionByReference ( $ this -> getSubscriptionReference ( ) ) ; } throw new RuntimeException ( 'Gateway is not set' ) ; }
Return subscription by subscription reference.

@return SubscriptionInterface
Return subscription by subscription reference .