public function __construct(Player $player, Item $item, $fishingHook = null) { $this->player = $player; $this->item = $item; $this->hook = $fishingHook; }