# fluent-cart/1.3.28/app/Events/Order/RenewalOrderDeleted.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.3.28. 52 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.3.28/code/app/Events/Order/RenewalOrderDeleted.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.3.28/raw/app/Events/Order/RenewalOrderDeleted.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.3.28/code/app/Events/Order/RenewalOrderDeleted.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Events\Order;

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

class RenewalOrderDeleted extends EventDispatcher
{
    public string $hook = 'fluent_cart/renewal_order_deleted';

    protected array $listeners = [
        // Listeners\UpdateStock::class,
        Listeners\Order\RenewalOrderDeleted::class
    ];

    /**
     * @var $order Order
     */
    public Order $order;

    /**
     * @var $customer Customer|null
     */

    public function __construct(Order $order)
    {
        $this->order = $order;
        $this->order->loadMissing('customer', 'shipping_address', 'billing_address');
    }

    public function toArray(): array
    {
        return [
            'order' => $this->order,
            'customer' => $this->order->customer ?? [],
        ];
    }

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

    public function shouldCreateActivity(): bool
    {
        return $this->order->mode !== \FluentCart\App\Helpers\Status::ORDER_MODE_TEST;
    }
}

```
