File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright Elgentos BV. All rights reserved.
4
+ * https://www.elgentos.nl/
5
+ */
6
+
7
+ namespace MageOS \CatalogDataAI \Api ;
8
+
9
+ interface RequestInterface
10
+ {
11
+ /**
12
+ * Retrieve products id.
13
+ * @return int
14
+ */
15
+ public function getId (): int ;
16
+
17
+ /**
18
+ * Retrieve overwrite flag.
19
+ * @return bool
20
+ */
21
+ public function getOverwrite (): bool ;
22
+ }
Original file line number Diff line number Diff line change 3
3
4
4
namespace MageOS \CatalogDataAI \Model \Product ;
5
5
6
+ use MageOS \CatalogDataAI \Api \RequestInterface ;
7
+
6
8
/**
7
9
* Data model for enrichment message queue.
8
10
*/
9
- class Request
11
+ class Request implements RequestInterface
10
12
{
11
13
public function __construct (
12
14
private readonly int $ id ,
@@ -15,15 +17,15 @@ public function __construct(
15
17
}
16
18
17
19
/**
18
- * Retrieve products id.
20
+ * @inheritDoc
19
21
*/
20
22
public function getId (): int
21
23
{
22
24
return $ this ->id ;
23
25
}
24
26
25
27
/**
26
- * Retrieve overwrite flag.
28
+ * @inheritDoc
27
29
*/
28
30
public function getOverwrite (): bool
29
31
{
You can’t perform that action at this time.
0 commit comments