for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of the Aggrego.
* (c) Tomasz Kunicki <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace Aggrego\FragmentedDataBoardDomain\Board\Events;
use Aggrego\AggregateEventConsumer\Shared\Event;
use Aggrego\AggregateEventConsumer\Uuid;
use Aggrego\FragmentedDataBoardDomain\Board\Shard\FinalItem;
class ShardUpdatedEvent extends Event
{
public function __construct(Uuid $uuid, FinalItem $board)
parent::__construct(
[
'uuid' => $uuid->getValue(),
'shard_uuid' => $board->getUuid()->getValue(),
'profile' => $board->getProfile()->__toString(),
'data' => $board->getData()->getValue()
]
);
}