# fluent-cart/1.7.0/app/Events/ReviewCreated.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.7.0. 40 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.7.0/code/app/Events/ReviewCreated.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.7.0/raw/app/Events/ReviewCreated.php
- Modified: 2026-09-29T12:49:18+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.7.0/code/app/Events/ReviewCreated.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Events;

use FluentCart\App\Models\ProductReview;

class ReviewCreated extends EventDispatcher
{
    public string $hook = 'fluent_cart/review_created';

    protected array $listeners = [];

    public ProductReview $review;

    public function __construct(ProductReview $review)
    {
        $this->review = $review;
    }

    public function toArray(): array
    {
        $this->review->load('product');

        return [
            'review'  => $this->review,
            'product' => $this->review->product,
        ];
    }

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

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

```
