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;
use Stratadox\CardGame\Proposal\ProposalId;
final class StartedMatchForProposal implements MatchEvent
{
private $matchId;
private $proposalId;
public function __construct(MatchId $matchId, ProposalId $proposalId)
$this->matchId = $matchId;
$this->proposalId = $proposalId;
}
public function aggregateId(): MatchId
return $this->matchId;
public function proposal(): ProposalId
return $this->proposalId;