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.
51 lines
865 B
51 lines
865 B
<?php
|
|
|
|
|
|
|
|
class Partie
|
|
{
|
|
private string $idPartie;
|
|
private $datePartie;
|
|
|
|
/**
|
|
* @param string $idPartie
|
|
* @param array $datePartie
|
|
*/
|
|
public function __construct(string $idPartie)
|
|
{
|
|
$this->idPartie = $idPartie;
|
|
$this->datePartie = getdate();
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getIdPartie(): string
|
|
{
|
|
return $this->idPartie;
|
|
}
|
|
|
|
/**
|
|
* @param string $idPartie
|
|
*/
|
|
public function setIdPartie(string $idPartie): void
|
|
{
|
|
$this->idPartie = $idPartie;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getDatePartie(): array
|
|
{
|
|
return $this->datePartie;
|
|
}
|
|
|
|
/**
|
|
* @param array $datePartie
|
|
*/
|
|
public function setDatePartie(array $datePartie): void
|
|
{
|
|
$this->datePartie = $datePartie;
|
|
}
|
|
} |