Passed
Push — feature/eco-2476/eco-2608-impl... ( c7607e...d87618 )
by Serhii
03:53
created

AkeneoPimService::getReferenceEntity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Service\AkeneoPim;
9
10
use Spryker\Service\Kernel\AbstractService;
11
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface;
12
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface;
13
14
/**
15
 * @method \SprykerEco\Service\AkeneoPim\AkeneoPimServiceFactory getFactory()
16
 */
17
class AkeneoPimService extends AbstractService implements AkeneoPimServiceInterface
18
{
19
    /**
20
     * {@inheritdoc}
21
     *
22
     * @api
23
     *
24
     * @param int $pageSize The size of the page returned by the server.
25
     * @param array $queryParameters Additional query parameters to pass in the request
26
     *
27
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
28
     */
29
    public function getAllProducts($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
30
    {
31
        return $this->getFactory()
32
            ->createAkeneoPimAdapterFactory()
33
            ->createProductApiAdapter()
34
            ->all($pageSize, $queryParameters);
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     *
40
     * @api
41
     *
42
     * @param int $pageSize The size of the page returned by the server.
43
     * @param array $queryParameters Additional query parameters to pass in the request
44
     *
45
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
46
     */
47
    public function getAllCategories($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
48
    {
49
        return $this->getFactory()
50
            ->createAkeneoPimAdapterFactory()
51
            ->createCategoryApiAdapter()
52
            ->all($pageSize, $queryParameters);
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     *
58
     * @api
59
     *
60
     * @param int $pageSize The size of the page returned by the server.
61
     * @param array $queryParameters Additional query parameters to pass in the request
62
     *
63
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
64
     */
65
    public function getAllAttributes($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
66
    {
67
        return $this->getFactory()
68
            ->createAkeneoPimAdapterFactory()
69
            ->createAttributeApiAdapter()
70
            ->all($pageSize, $queryParameters);
71
    }
72
73
    /**
74
     * {@inheritdoc}
75
     *
76
     * @api
77
     *
78
     * @param string $attributeCode Code of the attribute
79
     * @param int $pageSize The size of the page returned by the server.
80
     * @param array $queryParameters Additional query parameters to pass in the request
81
     *
82
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
83
     */
84
    public function getAllAttributeOptions($attributeCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
85
    {
86
        return $this->getFactory()
87
            ->createAkeneoPimAdapterFactory()
88
            ->createAttributeOptionApiAdapter()
89
            ->all($attributeCode, $pageSize, $queryParameters);
90
    }
91
92
    /**
93
     * {@inheritdoc}
94
     *
95
     * @api
96
     *
97
     * @param int $pageSize The size of the page returned by the server.
98
     * @param array $queryParameters Additional query parameters to pass in the request
99
     *
100
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
101
     */
102
    public function getAllAttributeGroups($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
103
    {
104
        return $this->getFactory()
105
            ->createAkeneoPimAdapterFactory()
106
            ->createAttributeGroupApiAdapter()
107
            ->all($pageSize, $queryParameters);
108
    }
109
110
    /**
111
     * {@inheritdoc}
112
     *
113
     * @api
114
     *
115
     * @param int $pageSize The size of the page returned by the server.
116
     * @param array $queryParameters Additional query parameters to pass in the request
117
     *
118
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
119
     */
120
    public function getAllChannels($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
121
    {
122
        return $this->getFactory()
123
            ->createAkeneoPimAdapterFactory()
124
            ->createChannelApiAdapter()
125
            ->all($pageSize, $queryParameters);
126
    }
127
128
    /**
129
     * {@inheritdoc}
130
     *
131
     * @api
132
     *
133
     * @param int $pageSize The size of the page returned by the server.
134
     * @param array $queryParameters Additional query parameters to pass in the request
135
     *
136
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
137
     */
138
    public function getAllCurrencies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
139
    {
140
        return $this->getFactory()
141
            ->createAkeneoPimAdapterFactory()
142
            ->createCurrencyApiAdapter()
143
            ->all($pageSize, $queryParameters);
144
    }
145
146
    /**
147
     * {@inheritdoc}
148
     *
149
     * @api
150
     *
151
     * @param int $pageSize The size of the page returned by the server.
152
     * @param array $queryParameters Additional query parameters to pass in the request
153
     *
154
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
155
     */
156
    public function getAllLocales($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
157
    {
158
        return $this->getFactory()
159
            ->createAkeneoPimAdapterFactory()
160
            ->createLocaleApiAdapter()
161
            ->all($pageSize, $queryParameters);
162
    }
163
164
    /**
165
     * {@inheritdoc}
166
     *
167
     * @api
168
     *
169
     * @param int $pageSize The size of the page returned by the server.
170
     * @param array $queryParameters Additional query parameters to pass in the request
171
     *
172
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
173
     */
174
    public function getAllFamilies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
175
    {
176
        return $this->getFactory()
177
            ->createAkeneoPimAdapterFactory()
178
            ->createFamilyApiAdapter()
179
            ->all($pageSize, $queryParameters);
180
    }
181
182
    /**
183
     * {@inheritdoc}
184
     *
185
     * @api
186
     *
187
     * @param string $familyCode Family code from which you want to get a list of family variants.
188
     * @param int $pageSize The size of the page returned by the server.
189
     * @param array $queryParameters Additional query parameters to pass in the request
190
     *
191
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
192
     */
193
    public function getAllFamilyVariants($familyCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
194
    {
195
        return $this->getFactory()
196
            ->createAkeneoPimAdapterFactory()
197
            ->createFamilyVariantApiAdapter()
198
            ->all($familyCode, $pageSize, $queryParameters);
199
    }
200
201
    /**
202
     * {@inheritdoc}
203
     *
204
     * @api
205
     *
206
     * @param int $pageSize The size of the page returned by the server.
207
     * @param array $queryParameters Additional query parameters to pass in the request
208
     *
209
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
210
     */
211
    public function getAllMeasureFamilies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
212
    {
213
        return $this->getFactory()
214
            ->createAkeneoPimAdapterFactory()
215
            ->createMeasureFamilyApiAdapter()
216
            ->all($pageSize, $queryParameters);
217
    }
218
219
    /**
220
     * {@inheritdoc}
221
     *
222
     * @api
223
     *
224
     * @param int $pageSize The size of the page returned by the server.
225
     * @param array $queryParameters Additional query parameters to pass in the request
226
     *
227
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
228
     */
229
    public function getAllAssociationTypes($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
230
    {
231
        return $this->getFactory()
232
            ->createAkeneoPimAdapterFactory()
233
            ->createAssociationTypeApiAdapter()
234
            ->all($pageSize, $queryParameters);
235
    }
236
237
    /**
238
     * {@inheritdoc}
239
     *
240
     * @api
241
     *
242
     * @param int $pageSize The size of the page returned by the server.
243
     * @param array $queryParameters Additional query parameters to pass in the request
244
     *
245
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
246
     */
247
    public function getAllProductMediaFiles($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
248
    {
249
        return $this->getFactory()
250
            ->createAkeneoPimAdapterFactory()
251
            ->createProductMediaFileApiAdapter()
252
            ->all($pageSize, $queryParameters);
253
    }
254
255
    /**
256
     * {@inheritdoc}
257
     *
258
     * @api
259
     *
260
     * @param int $pageSize The size of the page returned by the server.
261
     * @param array $queryParameters Additional query parameters to pass in the request
262
     *
263
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
264
     */
265
    public function getAllProductModels($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface
266
    {
267
        return $this->getFactory()
268
            ->createAkeneoPimAdapterFactory()
269
            ->createProductModelApiAdapter()
270
            ->all($pageSize, $queryParameters);
271
    }
272
273
    /**
274
     * {@inheritdoc}
275
     *
276
     * @api
277
     *
278
     * @param string $code Code of the attribute
279
     *
280
     * @return array
281
     */
282
    public function getAttribute($code): array
283
    {
284
        return $this->getFactory()
285
            ->createAkeneoPimAdapterFactory()
286
            ->createAttributeApiAdapter()
287
            ->get($code);
288
    }
289
290
    /**
291
     * {@inheritdoc}
292
     *
293
     * @api
294
     *
295
     * @param string $code Code of the attribute group
296
     *
297
     * @return array
298
     */
299
    public function getAttributeGroup($code): array
300
    {
301
        return $this->getFactory()
302
            ->createAkeneoPimAdapterFactory()
303
            ->createAttributeGroupApiAdapter()
304
            ->get($code);
305
    }
306
307
    /**
308
     * {@inheritdoc}
309
     *
310
     * @api
311
     *
312
     * @param string $attributeCode Code of the attribute
313
     * @param string $code Code of the attribute option
314
     *
315
     * @return array
316
     */
317
    public function getAttributeOption($attributeCode, $code): array
318
    {
319
        return $this->getFactory()
320
            ->createAkeneoPimAdapterFactory()
321
            ->createAttributeOptionApiAdapter()
322
            ->get($attributeCode, $code);
323
    }
324
325
    /**
326
     * {@inheritdoc}
327
     *
328
     * @api
329
     *
330
     * @param string $code Code of the category
331
     *
332
     * @return array
333
     */
334
    public function getCategory($code): array
335
    {
336
        return $this->getFactory()
337
            ->createAkeneoPimAdapterFactory()
338
            ->createCategoryApiAdapter()
339
            ->get($code);
340
    }
341
342
    /**
343
     * {@inheritdoc}
344
     *
345
     * @api
346
     *
347
     * @param string $code Code of the channel
348
     *
349
     * @return array
350
     */
351
    public function getChannel($code): array
352
    {
353
        return $this->getFactory()
354
            ->createAkeneoPimAdapterFactory()
355
            ->createChannelApiAdapter()
356
            ->get($code);
357
    }
358
359
    /**
360
     * {@inheritdoc}
361
     *
362
     * @api
363
     *
364
     * @param string $code Code of the currency
365
     *
366
     * @return array
367
     */
368
    public function getCurrency($code): array
369
    {
370
        return $this->getFactory()
371
            ->createAkeneoPimAdapterFactory()
372
            ->createCurrencyApiAdapter()
373
            ->get($code);
374
    }
375
376
    /**
377
     * {@inheritdoc}
378
     *
379
     * @api
380
     *
381
     * @param string $code Code of the locale
382
     *
383
     * @return array
384
     */
385
    public function getLocale($code): array
386
    {
387
        return $this->getFactory()
388
            ->createAkeneoPimAdapterFactory()
389
            ->createLocaleApiAdapter()
390
            ->get($code);
391
    }
392
393
    /**
394
     * {@inheritdoc}
395
     *
396
     * @api
397
     *
398
     * @param string $code Code of the family
399
     *
400
     * @return array
401
     */
402
    public function getFamily($code): array
403
    {
404
        return $this->getFactory()
405
            ->createAkeneoPimAdapterFactory()
406
            ->createFamilyApiAdapter()
407
            ->get($code);
408
    }
409
410
    /**
411
     * {@inheritdoc}
412
     *
413
     * @api
414
     *
415
     * @param string $familyCode Code of the family
416
     * @param string $code Code of the family variant
417
     *
418
     * @return array
419
     */
420
    public function getFamilyVariant($familyCode, $code): array
421
    {
422
        return $this->getFactory()
423
            ->createAkeneoPimAdapterFactory()
424
            ->createFamilyVariantApiAdapter()
425
            ->get($familyCode, $code);
426
    }
427
428
    /**
429
     * {@inheritdoc}
430
     *
431
     * @api
432
     *
433
     * @param string $code Code of the measure family
434
     *
435
     * @return array
436
     */
437
    public function getMeasureFamily($code): array
438
    {
439
        return $this->getFactory()
440
            ->createAkeneoPimAdapterFactory()
441
            ->createMeasureFamilyApiAdapter()
442
            ->get($code);
443
    }
444
445
    /**
446
     * {@inheritdoc}
447
     *
448
     * @api
449
     *
450
     * @param string $code Code of the product
451
     *
452
     * @return array
453
     */
454
    public function getProduct($code): array
455
    {
456
        return $this->getFactory()
457
            ->createAkeneoPimAdapterFactory()
458
            ->createProductApiAdapter()
459
            ->get($code);
460
    }
461
462
    /**
463
     * {@inheritdoc}
464
     *
465
     * @api
466
     *
467
     * @param string $code Code of the product media file
468
     *
469
     * @return array
470
     */
471
    public function getProductMediaFile($code): array
472
    {
473
        return $this->getFactory()
474
            ->createAkeneoPimAdapterFactory()
475
            ->createProductMediaFileApiAdapter()
476
            ->get($code);
477
    }
478
479
    /**
480
     * {@inheritdoc}
481
     *
482
     * @api
483
     *
484
     * @param string $code Code of the product model
485
     *
486
     * @return array
487
     */
488
    public function getProductModel($code): array
489
    {
490
        return $this->getFactory()
491
            ->createAkeneoPimAdapterFactory()
492
            ->createProductModelApiAdapter()
493
            ->get($code);
494
    }
495
496
    /**
497
     * {@inheritdoc}
498
     *
499
     * @api
500
     *
501
     * @param string $code Code of the reference entity
502
     *
503
     * @return array
504
     */
505
    public function getReferenceEntity($code): array
506
    {
507
        return $this->getFactory()
508
            ->createAkeneoPimAdapterFactory()
509
            ->createReferenceEntityApiAdapter()
510
            ->get($code);
511
    }
512
513
    /**
514
     * {@inheritdoc}
515
     *
516
     * @api
517
     *
518
     * @param int $limit The maximum number of attributes to return.
519
     * @param bool $withCount Set to true to return the total count of attributes.
520
     * @param array $queryParameters Additional query parameters to pass in the request.
521
     *
522
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
523
     */
524
    public function getAttributesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
525
    {
526
        return $this->getFactory()
527
            ->createAkeneoPimAdapterFactory()
528
            ->createAttributeApiAdapter()
529
            ->listPerPage($limit, $withCount, $queryParameters);
530
    }
531
532
    /**
533
     * {@inheritdoc}
534
     *
535
     * @api
536
     *
537
     * @param int $limit The maximum number of attribute groups to return.
538
     * @param bool $withCount Set to true to return the total count of attribute groups.
539
     * @param array $queryParameters Additional query parameters to pass in the request.
540
     *
541
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
542
     */
543
    public function getAttributeGroupsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
544
    {
545
        return $this->getFactory()
546
            ->createAkeneoPimAdapterFactory()
547
            ->createAttributeGroupApiAdapter()
548
            ->listPerPage($limit, $withCount, $queryParameters);
549
    }
550
551
    /**
552
     * {@inheritdoc}
553
     *
554
     * @api
555
     *
556
     * @param string $attributeCode Code of the attribute
557
     * @param int $limit The maximum number of resources to return.
558
     * @param bool $withCount Set to true to return the total count of resources.
559
     * @param array $queryParameters Additional query parameters to pass in the request.
560
     *
561
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
562
     */
563
    public function getAttributeOptionsListPerPage($attributeCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
564
    {
565
        return $this->getFactory()
566
            ->createAkeneoPimAdapterFactory()
567
            ->createAttributeOptionApiAdapter()
568
            ->listPerPage($attributeCode, $limit, $withCount, $queryParameters);
569
    }
570
571
    /**
572
     * {@inheritdoc}
573
     *
574
     * @api
575
     *
576
     * @param int $limit The maximum number of categories to return.
577
     * @param bool $withCount Set to true to return the total count of categories.
578
     * @param array $queryParameters Additional query parameters to pass in the request.
579
     *
580
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
581
     */
582
    public function getCategoriesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
583
    {
584
        return $this->getFactory()
585
            ->createAkeneoPimAdapterFactory()
586
            ->createCategoryApiAdapter()
587
            ->listPerPage($limit, $withCount, $queryParameters);
588
    }
589
590
    /**
591
     * {@inheritdoc}
592
     *
593
     * @api
594
     *
595
     * @param int $limit The maximum number of channels to return.
596
     * @param bool $withCount Set to true to return the total count of channels.
597
     * @param array $queryParameters Additional query parameters to pass in the request.
598
     *
599
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
600
     */
601
    public function getChannelsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
602
    {
603
        return $this->getFactory()
604
            ->createAkeneoPimAdapterFactory()
605
            ->createChannelApiAdapter()
606
            ->listPerPage($limit, $withCount, $queryParameters);
607
    }
608
609
    /**
610
     * {@inheritdoc}
611
     *
612
     * @api
613
     *
614
     * @param int $limit The maximum number of currencies to return.
615
     * @param bool $withCount Set to true to return the total count of currencies.
616
     * @param array $queryParameters Additional query parameters to pass in the request.
617
     *
618
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
619
     */
620
    public function getCurrenciesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
621
    {
622
        return $this->getFactory()
623
            ->createAkeneoPimAdapterFactory()
624
            ->createCurrencyApiAdapter()
625
            ->listPerPage($limit, $withCount, $queryParameters);
626
    }
627
628
    /**
629
     * {@inheritdoc}
630
     *
631
     * @api
632
     *
633
     * @param int $limit The maximum number of locales to return.
634
     * @param bool $withCount Set to true to return the total count of locales.
635
     * @param array $queryParameters Additional query parameters to pass in the request.
636
     *
637
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
638
     */
639
    public function getLocalesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
640
    {
641
        return $this->getFactory()
642
            ->createAkeneoPimAdapterFactory()
643
            ->createAttributeGroupApiAdapter()
644
            ->listPerPage($limit, $withCount, $queryParameters);
645
    }
646
647
    /**
648
     * {@inheritdoc}
649
     *
650
     * @api
651
     *
652
     * @param int $limit The maximum number of families to return.
653
     * @param bool $withCount Set to true to return the total count of families.
654
     * @param array $queryParameters Additional query parameters to pass in the request.
655
     *
656
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
657
     */
658
    public function getFamiliesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
659
    {
660
        return $this->getFactory()
661
            ->createAkeneoPimAdapterFactory()
662
            ->createFamilyApiAdapter()
663
            ->listPerPage($limit, $withCount, $queryParameters);
664
    }
665
666
    /**
667
     * {@inheritdoc}
668
     *
669
     * @api
670
     *
671
     * @param string $familyCode Family code from which you want to get a list of family variants.
672
     * @param int $limit The maximum number of family variants to return.
673
     * @param bool $withCount Set to true to return the total count of family variants.
674
     * @param array $queryParameters Additional query parameters to pass in the request.
675
     *
676
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
677
     */
678
    public function getFamilyVariantsListPerPage($familyCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
679
    {
680
        return $this->getFactory()
681
            ->createAkeneoPimAdapterFactory()
682
            ->createFamilyVariantApiAdapter()
683
            ->listPerPage($familyCode, $limit, $withCount, $queryParameters);
684
    }
685
686
    /**
687
     * {@inheritdoc}
688
     *
689
     * @api
690
     *
691
     * @param int $limit The maximum number of measure families to return.
692
     * @param bool $withCount Set to true to return the total count of measure families.
693
     * @param array $queryParameters Additional query parameters to pass in the request.
694
     *
695
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
696
     */
697
    public function getMeasureFamilyListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
698
    {
699
        return $this->getFactory()
700
            ->createAkeneoPimAdapterFactory()
701
            ->createMeasureFamilyApiAdapter()
702
            ->listPerPage($limit, $withCount, $queryParameters);
703
    }
704
705
    /**
706
     * {@inheritdoc}
707
     *
708
     * @api
709
     *
710
     * @param int $limit The maximum number of products to return.
711
     * @param bool $withCount Set to true to return the total count of products.
712
     * @param array $queryParameters Additional query parameters to pass in the request.
713
     *
714
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
715
     */
716
    public function getProductsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
717
    {
718
        return $this->getFactory()
719
            ->createAkeneoPimAdapterFactory()
720
            ->createProductApiAdapter()
721
            ->listPerPage($limit, $withCount, $queryParameters);
722
    }
723
724
    /**
725
     * {@inheritdoc}
726
     *
727
     * @api
728
     *
729
     * @param int $limit The maximum number of product media files to return.
730
     * @param bool $withCount Set to true to return the total count of product media files.
731
     * @param array $queryParameters Additional query parameters to pass in the request.
732
     *
733
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
734
     */
735
    public function getProductMediaFilesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
736
    {
737
        return $this->getFactory()
738
            ->createAkeneoPimAdapterFactory()
739
            ->createProductMediaFileApiAdapter()
740
            ->listPerPage($limit, $withCount, $queryParameters);
741
    }
742
743
    /**
744
     * {@inheritdoc}
745
     *
746
     * @api
747
     *
748
     * @param int $limit The maximum number of product models to return.
749
     * @param bool $withCount Set to true to return the total count of product models.
750
     * @param array $queryParameters Additional query parameters to pass in the request.
751
     *
752
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
753
     */
754
    public function getProductModelsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface
755
    {
756
        return $this->getFactory()
757
            ->createAkeneoPimAdapterFactory()
758
            ->createProductModelApiAdapter()
759
            ->listPerPage($limit, $withCount, $queryParameters);
760
    }
761
}
762