public function __construct(Player $player, Location $from, Location $to) { $this->player = $player; $this->from = $from; $this->to = $to; }