original_string: public function ServiceRegister(AgentServiceRegistration $agentServiceRegistration) {
          $r = new Request('PUT', 'v1/agent/service/register', $this->config, $agentServiceRegistration);
  
          return $this->requireOK($this->doRequest($r))[2];
      }
code: public function ServiceRegister(AgentServiceRegistration $agentServiceRegistration) {
          $r = new Request('PUT', 'v1/agent/service/register', $this->config, $agentServiceRegistration);
  
          return $this->requireOK($this->doRequest($r))[2];
      }
code_tokens: public function ServiceRegister ( AgentServiceRegistration $ agentServiceRegistration ) { $ r = new Request ( 'PUT' , 'v1/agent/service/register' , $ this -> config , $ agentServiceRegistration ) ; return $ this -> requireOK ( $ this -> doRequest ( $ r ) ) [ 2 ] ; }
docstring: Register a service within Consul
  
  @param \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration $agentServiceRegistration
  @return \DCarbone\PHPConsulAPI\Error|null
docstring_tokens: Register a service within Consul