slug = $slug; $this->metadata = $metadata; $this->request_handler = $request_handler; $this->authentication = $authentication; } /** * Gets the service slug. * * @since 0.7.0 * * @return string The service slug. */ public function get_slug(): string { return $this->slug; } /** * Gets the service metadata. * * @since 0.7.0 * * @return Service_Metadata The service metadata. */ public function get_metadata(): Service_Metadata { return $this->metadata; } /** * Gets the service request handler instance. * * @since 0.7.0 * * @return Request_Handler The service request handler instance. */ public function get_request_handler(): Request_Handler { return $this->request_handler; } /** * Gets the service authentication instance, if any. * * @since 0.7.0 * * @return Authentication|null The service authentication instance, if any. */ public function get_authentication(): ?Authentication { return $this->authentication; } }