Skip to content

Commit

Permalink
feat: adds EventProjector interface
Browse files Browse the repository at this point in the history
  • Loading branch information
matiux committed Nov 1, 2022
1 parent af0d638 commit 3421f43
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Matiux/DDDStarterPack/Query/EventProjector.php
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace DDDStarterPack\Query;

use DDDStarterPack\Event\DomainEvent;

/**
* @template T of DomainEvent
*/
interface Projector
{
/**
* @param T $event
*/
public function project($event): void;
}

0 comments on commit 3421f43

Please sign in to comment.