File tree Expand file tree Collapse file tree 4 files changed +56
-2
lines changed
lib/internal/Magento/Framework/Mview Expand file tree Collapse file tree 4 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 23
23
*
24
24
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
25
25
*/
26
- class View extends DataObject implements ViewInterface
26
+ class View extends DataObject implements ViewExtendedInterface
27
27
{
28
28
/**
29
29
* Default batch size for partial reindex
Original file line number Diff line number Diff line change 20
20
*
21
21
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22
22
*/
23
- class Subscription implements SubscriptionInterface
23
+ class Subscription implements SubscriptionExtendedInterface
24
24
{
25
25
/**
26
26
* Database connection
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \Framework \Mview \View ;
9
+
10
+ use Magento \Framework \DB \Ddl \Trigger ;
11
+
12
+ /**
13
+ * Extended Interface of \Magento\Framework\Mview\View\SubscriptionInterface
14
+ */
15
+ interface SubscriptionExtendedInterface extends SubscriptionInterface
16
+ {
17
+ /**
18
+ * Get all triggers for the subscription
19
+ *
20
+ * @return Trigger[]
21
+ */
22
+ public function getTriggers ();
23
+
24
+ /**
25
+ * Save a trigger to the DB
26
+ *
27
+ * @param Trigger $trigger
28
+ * @return void
29
+ * @throws \Zend_Db_Exception
30
+ */
31
+ public function saveTrigger (Trigger $ trigger );
32
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \Framework \Mview ;
9
+
10
+ /**
11
+ * Extended Interface of \Magento\Framework\Mview\ViewInterface
12
+ */
13
+ interface ViewExtendedInterface extends ViewInterface
14
+ {
15
+ /**
16
+ * Initializes Subscription instance
17
+ *
18
+ * @param array $subscriptionConfig
19
+ * @return \Magento\Framework\Mview\View\SubscriptionInterface
20
+ */
21
+ public function initSubscriptionInstance (array $ subscriptionConfig );
22
+ }
You can’t perform that action at this time.
0 commit comments