for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Stratadox\CardGame\Proposal;
final class ProposalWasAccepted implements ProposalEvent
{
private $proposal;
public function __construct(ProposalId $proposal)
$this->proposal = $proposal;
}
public function aggregateId(): ProposalId
return $this->proposal;