for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Stratadox\CardGame\Match\Event;
use Stratadox\CardGame\Match\MatchEvent;
use Stratadox\CardGame\Match\MatchId;
final class MatchHasBegun implements MatchEvent
{
private $match;
private $whoBegins;
public function __construct(MatchId $match, int $whoBegins)
$this->match = $match;
$this->whoBegins = $whoBegins;
}
public function aggregateId(): MatchId
return $this->match;
public function whoBegins(): int
return $this->whoBegins;