PluginProbe
seQura / 3.1.1
seQura v3.1.1
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Core / Extension / BusinessLogic / AdminAPI / PromotionalWidgets / class-promotional-widgets-controller.php

class-promotional-widgets-controller.php in seQura 3.1.1, at src/Core/Extension/BusinessLogic/AdminAPI/PromotionalWidgets/class-promotional-widgets-controller.php

32 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Extension of the PromotionalWidgetsController.
4 *
5 * @package SeQura\WC\Core\Extension\BusinessLogic\AdminAPI\PromotionalWidgets
6 */
7
8 namespace SeQura\WC\Core\Extension\BusinessLogic\AdminAPI\PromotionalWidgets;
9
10 use Exception;
11 use SeQura\Core\BusinessLogic\AdminAPI\PromotionalWidgets\PromotionalWidgetsController;
12 use SeQura\Core\BusinessLogic\AdminAPI\PromotionalWidgets\Responses\WidgetSettingsResponse;
13 use SeQura\WC\Core\Extension\BusinessLogic\AdminAPI\PromotionalWidgets\Responses\Widget_Settings_Response;
14
15 /**
16 * Extension of the PromotionalWidgetsController.
17 */
18 class Promotional_Widgets_Controller extends PromotionalWidgetsController {
19
20 /**
21 * Gets active widget settings.
22 *
23 * @return WidgetSettingsResponse
24 *
25 * @throws Exception
26 */
27 public function getWidgetSettings(): WidgetSettingsResponse {
28 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
29 return new Widget_Settings_Response( $this->widgetSettingsService->getWidgetSettings() );
30 }
31 }
32