Skip to content

Commit 6cdcab0

Browse files
committed
MAGE-1154: add somme PHPdoc
1 parent 87d0d44 commit 6cdcab0

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

Service/AdditionalSection/RecordBuilder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ public function __construct(
1313
protected ManagerInterface $eventManager,
1414
){}
1515

16+
/**
17+
* Builds a Section record
18+
*
19+
* @param DataObject $entity
20+
* @return array
21+
*/
1622
public function buildRecord(DataObject $entity): array
1723
{
1824
$record = [

Service/Category/RecordBuilder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ public function __construct(
3434
protected Manager $moduleManager,
3535
) {}
3636

37+
/**
38+
* Builds a Category record
39+
*
40+
* @param DataObject $entity
41+
* @return array
42+
* @throws AlgoliaException
43+
* @throws LocalizedException
44+
*/
3745
public function buildRecord(DataObject $entity): array
3846
{
3947
if (!$entity instanceof MagentoCategory) {

Service/Page/RecordBuilder.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ public function __construct(
2222
){}
2323

2424
/**
25+
* Builds a Page record
26+
*
27+
* @param DataObject $entity
28+
* @return array
29+
*
2530
* @throws AlgoliaException
2631
*/
2732
public function buildRecord(DataObject $entity): array

Service/Product/RecordBuilder.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Algolia\AlgoliaSearch\Service\Product;
44

55
use Algolia\AlgoliaSearch\Api\RecordBuilder\RecordBuilderInterface;
6+
use Algolia\AlgoliaSearch\Exception\DiagnosticsException;
67
use Algolia\AlgoliaSearch\Exception\ProductDeletedException;
78
use Algolia\AlgoliaSearch\Exception\ProductDisabledException;
89
use Algolia\AlgoliaSearch\Exception\ProductNotVisibleException;
@@ -53,6 +54,18 @@ public function __construct(
5354
protected StockRegistryInterface $stockRegistry,
5455
protected PriceManager $priceManager,
5556
){}
57+
58+
/**
59+
* Builds a Product record
60+
*
61+
* @param DataObject $entity
62+
* @return array
63+
*
64+
* @throws AlgoliaException
65+
* @throws LocalizedException
66+
* @throws NoSuchEntityException
67+
* @throws DiagnosticsException
68+
*/
5669
public function buildRecord(DataObject $entity): array
5770
{
5871
if (!$entity instanceof Product) {

Service/Suggestion/RecordBuilder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ public function __construct(
1313
protected ManagerInterface $eventManager,
1414
){}
1515

16+
/**
17+
* Builds a Suggestion record
18+
*
19+
* @param DataObject $entity
20+
* @return array
21+
*/
1622
public function buildRecord(DataObject $entity): array
1723
{
1824
$suggestionObject = [

0 commit comments

Comments
 (0)