original_string: public function getServiceById($id)
      {
          if ($name = $this->getServiceNameById($id)) {
              return $this->getService($name);
          }
  
          return null;
      }
code: public function getServiceById($id)
      {
          if ($name = $this->getServiceNameById($id)) {
              return $this->getService($name);
          }
  
          return null;
      }
code_tokens: public function getServiceById ( $ id ) { if ( $ name = $ this -> getServiceNameById ( $ id ) ) { return $ this -> getService ( $ name ) ; } return null ; }
docstring: Get a service instance by its identifier.
  
  @param  int $id
  
  @return \DreamFactory\Core\Contracts\ServiceInterface
  @throws \DreamFactory\Core\Exceptions\NotFoundException
docstring_tokens: Get a service instance by its identifier .