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