Skip to content

Commit 70755b3

Browse files
committed
MET-23: Deprecate measure endpoints
1 parent 46dd46a commit 70755b3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Api/MeasureFamilyApi.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* @author Philippe Mossière <[email protected]>
1515
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1616
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17+
*
18+
* @deprecated use \Akeneo\Pim\ApiClient\Client\ResourceClientInterface\MeasurementFamilyApi
1719
*/
1820
class MeasureFamilyApi implements MeasureFamilyApiInterface
1921
{
@@ -46,6 +48,9 @@ public function __construct(
4648

4749
/**
4850
* {@inheritdoc}
51+
*
52+
* @deprecated use \Akeneo\Pim\ApiClient\Client\ResourceClientInterface\MeasurementFamilyApi::all() and filter on
53+
* the measurement family code you want to fetch manually.
4954
*/
5055
public function get(string $code): array
5156
{
@@ -54,6 +59,8 @@ public function get(string $code): array
5459

5560
/**
5661
* {@inheritdoc}
62+
*
63+
* @deprecated use \Akeneo\Pim\ApiClient\Client\ResourceClientInterface\MeasurementFamilyApi::all()
5764
*/
5865
public function listPerPage(int $limit = 10, bool $withCount = false, array $queryParameters = []): PageInterface
5966
{
@@ -64,6 +71,8 @@ public function listPerPage(int $limit = 10, bool $withCount = false, array $que
6471

6572
/**
6673
* {@inheritdoc}
74+
*
75+
* @deprecated use \Akeneo\Pim\ApiClient\Client\ResourceClientInterface\MeasurementFamilyApi::all()
6776
*/
6877
public function all(int $pageSize = 10, array $queryParameters = []): ResourceCursorInterface
6978
{

src/Api/MeasureFamilyApiInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* @author Philippe Mossière <[email protected]>
1212
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1313
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
14+
*
15+
* @deprecated \Akeneo\Pim\ApiClient\Exception\HttpException\MeasurementFamilyApiInterface instead
1416
*/
1517
interface MeasureFamilyApiInterface extends GettableResourceInterface, ListableResourceInterface
1618
{

0 commit comments

Comments
 (0)