You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.01-QCM_MuscuMaths/Website/classes/Lobby.php

39 lines
702 B

<?php
namespace classes;
class Lobby
{
private int $id;
private string $name;
private string $password;
private int $nbPlayers;
public function __construct(int $id, string $name, string $password, int $nbPlayers)
{
$this->id = $id;
$this->name = $name;
$this->password = $password;
$this->nbPlayer = $nbPlayers;
}
public function getId(): int
{
return $this->id;
}
public function getName()
{
return $this->name;
}
public function getNbPlayers()
{
return $this->nbPlayers;
}
public function setNbplayers(int $nbPlayers)
{
$this->nbPlayer = $nbPlayers;
}
}