original_string: public function getSubscriptionById($subscriptionId)
      {
          $subscriptions = $this
              ->getSubscriptions(null, null, null, $subscriptionId)
              ->getResponse()
              ->getSubscriptions();
  
          return count($subscriptions) ? reset($subscriptions) : null;
      }
code: public function getSubscriptionById($subscriptionId)
      {
          $subscriptions = $this
              ->getSubscriptions(null, null, null, $subscriptionId)
              ->getResponse()
              ->getSubscriptions();
  
          return count($subscriptions) ? reset($subscriptions) : null;
      }
code_tokens: public function getSubscriptionById ( $ subscriptionId ) { $ subscriptions = $ this -> getSubscriptions ( null , null , null , $ subscriptionId ) -> getResponse ( ) -> getSubscriptions ( ) ; return count ( $ subscriptions ) ? reset ( $ subscriptions ) : null ; }
docstring: Get one subscription by using the Monsum subscription ID.
  
  @param integer $subscriptionId The Monsum subscription ID.
  @return Subscription|null
docstring_tokens: Get one subscription by using the Monsum subscription ID .