# fluent-cart/1.3.23/app/Services/Widgets/BaseWidget.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.3.23. 19 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.3.23/code/app/Services/Widgets/BaseWidget.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.3.23/raw/app/Services/Widgets/BaseWidget.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.3.23/code/app/Services/Widgets/BaseWidget.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Services\Widgets;

use FluentCart\Framework\Support\Arr;

abstract class BaseWidget
{
    abstract public function widgetName(): string;

    abstract public function widgetData(): array;

    public static function widgets(): array
    {
        $instance = new static();
        $stats = apply_filters('fluent_cart/' . $instance->widgetName(), $instance->widgetData());
        return Arr::wrap($stats);
    }
}
```
