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\Command;
use Stratadox\CardGame\Match\MatchId;
final class EndTheTurn
{
private $match;
private $player;
public function __construct(MatchId $match, int $player)
$this->match = $match;
$this->player = $player;
}
public static function for(MatchId $match, int $player): self
return new self($match, $player);
public function match(): MatchId
return $this->match;
public function player(): int
return $this->player;