# fluent-cart/1.6.4/app/Modules/IntegrationActions/BaseIntegrationAction.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 46 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/IntegrationActions/BaseIntegrationAction.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Modules/IntegrationActions/BaseIntegrationAction.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.6.4/code/app/Modules/IntegrationActions/BaseIntegrationAction.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Modules\IntegrationActions;


abstract class BaseIntegrationAction
{
    public string $slug;
    private static array $actions = [];

    public function __construct()
    {

    }

    public function init()
    {
        add_filter('fluent_cart/integration/get_global_integration_actions', function () {
            return $this->register();
        }, 10, 1);

        $this->registerHooks();
    }

    public function registerHooks()
    {
        //This hook will allow others to register their storage driver with individual storage providers
    }


    public function register(): array
    {
        static::$actions[] = [
            "slug"     => $this->getSlug(),
            'instance' => $this
        ];
        return static::$actions;
    }

    abstract public function handle();

    abstract public function getSlug(): string;

}


```
