diff --git a/src/Player.php b/src/Player.php new file mode 100644 index 0000000..a1a2cbd --- /dev/null +++ b/src/Player.php @@ -0,0 +1,16 @@ +GetPlayers()[$id]; + } + + /** + * @param Player $Player + */ + public function addPlayer(Player $Player) + { + $newArray = $this->GetPlayers(); + $newArray[] = $Player; + $this->setPlayers($newArray); + } +}