# fluent-cart/1.6.4/app/Events/Subscription/SubscriptionReactivated.php

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

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Events/Subscription/SubscriptionReactivated.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Events/Subscription/SubscriptionReactivated.php
- Modified: 2026-07-29T13:15:28+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/Events/Subscription/SubscriptionReactivated.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Events\Subscription;

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

class SubscriptionReactivated extends EventDispatcher
{
    public string $hook = 'fluent_cart/subscription_reactivated';
    protected array $listeners = [];

    public Subscription $subscription;
    public ?Customer $customer;
    public ?Order $order;
    public ?string $oldStatus;

    public function __construct(Subscription $subscription, ?Order $order = null, ?Customer $customer = null, ?string $oldStatus = null)
    {
        $this->subscription = $subscription;
        $this->order = $order;
        $this->customer = $customer;
        $this->oldStatus = $oldStatus;
    }

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

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

```
