From f4b15388a3ac309b8ffe59e61ceb5cd05e7aad43 Mon Sep 17 00:00:00 2001 From: Matthew Radcliffe Date: Wed, 19 Jun 2024 11:56:27 -0400 Subject: [PATCH] 22: Adds getTenantId method to XeroClientInterface --- src/XeroClient.php | 6 +----- src/XeroClientInterface.php | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/XeroClient.php b/src/XeroClient.php index c8ed946..39f23b8 100644 --- a/src/XeroClient.php +++ b/src/XeroClient.php @@ -238,11 +238,7 @@ public function getRefreshedToken(): ?AccessTokenInterface } /** - * The tenant guids accessible by this client. - * - * This will make a request if tenant ids is empty. - * - * @return string[] + * {@inheritdoc} */ public function getTenantIds(): array { diff --git a/src/XeroClientInterface.php b/src/XeroClientInterface.php index 29bde59..8ca8ae1 100644 --- a/src/XeroClientInterface.php +++ b/src/XeroClientInterface.php @@ -164,4 +164,11 @@ public function post(string|UriInterface $uri = '', array $options = []): Respon * @deprecated in 0.5.0 and removed in 0.6.0. Use the request method. */ public function put(string|UriInterface $uri = '', array $options = []): ResponseInterface; + + /** + * The tenant guids accessible by this client. + * + * @return string[] + */ + public function getTenantIds(): array; }