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.
55 lines
1.0 KiB
55 lines
1.0 KiB
<?php
|
|
|
|
namespace model;
|
|
|
|
use JetBrains\PhpStorm\Pure;
|
|
require_once('User.php');
|
|
class Student extends User
|
|
{
|
|
public string $nickname;
|
|
protected bool $extraTime;
|
|
|
|
/**
|
|
* @param String $nickname
|
|
* @param bool $extraTime
|
|
*/
|
|
#[Pure] public function __construct(string $id, string $mail, string $nom, string $prenom, string $nickname, bool $extraTime)
|
|
{
|
|
parent::__construct($id,$mail, $nom, $prenom);
|
|
$this->nickname = $nickname;
|
|
$this->extraTime = $extraTime;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isExtraTime(): bool
|
|
{
|
|
return $this->extraTime;
|
|
}
|
|
|
|
/**
|
|
* @param bool $extraTime
|
|
*/
|
|
public function setExtraTime(bool $extraTime): void
|
|
{
|
|
$this->extraTime = $extraTime;
|
|
}
|
|
|
|
/**
|
|
* @param String $nickname
|
|
*/
|
|
public function setNickname(string $nickname): void
|
|
{
|
|
$this->nickname = $nickname;
|
|
}
|
|
|
|
public function getNickname(): string
|
|
{
|
|
return $this->nickname;
|
|
}
|
|
|
|
|
|
|
|
|
|
} |