File tree Expand file tree Collapse file tree 5 files changed +38
-0
lines changed Expand file tree Collapse file tree 5 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ public function __construct(
13
13
protected ManagerInterface $ eventManager ,
14
14
){}
15
15
16
+ /**
17
+ * Builds a Section record
18
+ *
19
+ * @param DataObject $entity
20
+ * @return array
21
+ */
16
22
public function buildRecord (DataObject $ entity ): array
17
23
{
18
24
$ record = [
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ public function __construct(
34
34
protected Manager $ moduleManager ,
35
35
) {}
36
36
37
+ /**
38
+ * Builds a Category record
39
+ *
40
+ * @param DataObject $entity
41
+ * @return array
42
+ * @throws AlgoliaException
43
+ * @throws LocalizedException
44
+ */
37
45
public function buildRecord (DataObject $ entity ): array
38
46
{
39
47
if (!$ entity instanceof MagentoCategory) {
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ public function __construct(
22
22
){}
23
23
24
24
/**
25
+ * Builds a Page record
26
+ *
27
+ * @param DataObject $entity
28
+ * @return array
29
+ *
25
30
* @throws AlgoliaException
26
31
*/
27
32
public function buildRecord (DataObject $ entity ): array
Original file line number Diff line number Diff line change 3
3
namespace Algolia \AlgoliaSearch \Service \Product ;
4
4
5
5
use Algolia \AlgoliaSearch \Api \RecordBuilder \RecordBuilderInterface ;
6
+ use Algolia \AlgoliaSearch \Exception \DiagnosticsException ;
6
7
use Algolia \AlgoliaSearch \Exception \ProductDeletedException ;
7
8
use Algolia \AlgoliaSearch \Exception \ProductDisabledException ;
8
9
use Algolia \AlgoliaSearch \Exception \ProductNotVisibleException ;
@@ -53,6 +54,18 @@ public function __construct(
53
54
protected StockRegistryInterface $ stockRegistry ,
54
55
protected PriceManager $ priceManager ,
55
56
){}
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
+ */
56
69
public function buildRecord (DataObject $ entity ): array
57
70
{
58
71
if (!$ entity instanceof Product) {
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ public function __construct(
13
13
protected ManagerInterface $ eventManager ,
14
14
){}
15
15
16
+ /**
17
+ * Builds a Suggestion record
18
+ *
19
+ * @param DataObject $entity
20
+ * @return array
21
+ */
16
22
public function buildRecord (DataObject $ entity ): array
17
23
{
18
24
$ suggestionObject = [
You can’t perform that action at this time.
0 commit comments