# fluent-cart/1.6.1/app/Events/Order/OrderDeleting.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.1. 53 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.1/code/app/Events/Order/OrderDeleting.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.1/raw/app/Events/Order/OrderDeleting.php
- Modified: 2026-04-07T13:41:30+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.1/code/app/Events/Order/OrderDeleting.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Events\Order;

use FluentCart\App\Events\EventDispatcher;
use FluentCart\App\Listeners;
use FluentCart\App\Models\Order;

class OrderDeleting extends EventDispatcher
{
    public string $hook = 'fluent_cart/order_before_delete';

    protected array $listeners = [
        Listeners\Order\OrderDeleting::class
    ];

    public Order $order;

    public array $connectedOrderIds;

    public bool $isTestMode;

    public string $type;

    public function __construct(Order $order, $connectedOrderIds = [], bool $isTestMode = false, string $type = '')
    {
        $this->order = $order;
        $this->connectedOrderIds = $connectedOrderIds ?? [];
        $this->isTestMode = $isTestMode;
        $this->type = $type;
    }

    public function toArray(): array
    {
        return [
            'order'               => $this->order,
            'connected_order_ids' => $this->connectedOrderIds,
            'is_test_mode'        => $this->isTestMode,
            'type'                => $this->type
        ];
    }

    public function getActivityEventModel()
    {
        return $this->order;
    }

    public function shouldCreateActivity(): bool
    {
        return false;
    }
}

```
