File "FakeAggregateRootForPartial.php"

Full Path: /var/www/html/back/vendor/spatie/laravel-event-sourcing/src/AggregateRoots/FakeAggregateRootForPartial.php
File size: 351 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Spatie\EventSourcing\AggregateRoots;

class FakeAggregateRootForPartial extends AggregateRoot
{
    public function __construct()
    {
        // Do nothing
    }

    public function addPartial(AggregatePartial $aggregatePartial): void
    {
        $this->resolvePartials();

        $this->entities[] = $aggregatePartial;
    }
}