for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Domain\EventSourcing\Event;
use Cubiche\Domain\EventPublisher\DomainEvent;
use Cubiche\Domain\EventSourcing\EventSourcedAggregateRootInterface;
* PostRemoveEvent class.
* @author Ivannis Suárez Jerez <[email protected]>
class PostRemoveEvent extends DomainEvent
{
* @var EventSourcedAggregateRootInterface
protected $aggregate;
* PrePersistEvent constructor.
* @param EventSourcedAggregateRootInterface $aggregate
public function __construct(EventSourcedAggregateRootInterface $aggregate)
parent::__construct();
$this->aggregate = $aggregate;
}
* @return EventSourcedAggregateRootInterface
public function aggregate()
return $this->aggregate;