Skip to content

Commit 0fadfa2

Browse files
committed
[UC-3] Move const to interface
1 parent 2e2bf89 commit 0fadfa2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Api/ProductApi.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
final class ProductApi extends AbstractClient implements ProductApiInterface
1818
{
19-
public const GET_PRODUCT_BY_CUSTOM_ID_ENDPOINT = '/products-by-id/%s/product_event/';
20-
2119
public function getProductByCustomId(UserComApiAwareInterface $resource, int $productId): ?array
2220
{
2321
$url = $this->getApiEndpointUrl($resource, sprintf(self::GET_PRODUCT_BY_CUSTOM_ID_ENDPOINT, $productId));

src/Api/ProductApiInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515

1616
interface ProductApiInterface
1717
{
18+
public const GET_PRODUCT_BY_CUSTOM_ID_ENDPOINT = '/products-by-id/%s/product_event/';
19+
1820
public function getProductByCustomId(UserComApiAwareInterface $resource, int $productId): ?array;
1921
}

0 commit comments

Comments
 (0)