for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EventSauce\EventSourcing\AggregateRootBehaviour;
use EventSauce\EventSourcing\Event;
trait EventApplyingBehaviour
{
protected function apply(Event $event)
$parts = explode('\\', get_class($event));
$this->{'apply' . end($parts)}($event);
}