dev classes evenement & offres

gateway
Baptiste DUDONNE 1 year ago
parent 29b08cf4bb
commit e438a7533a

@ -2,5 +2,55 @@
class Evenement
{
/**
* @var string Nom Evènement
*/
private string $nameEvent;
/**
* @var string date Evenement
*/
private string $date;
/**
* @var Compte Organisateur
*/
private Compte $organisator;
/**
* @var array Liste des Participants
*/
private array $participants;
/**
* @param string $nameEvent
* @param string $date
* @param Compte $organisator
* @param array $participants
*/
public function __construct(string $nameEvent,string $date,Compte $organisator,
array $participants)
{
$this->nameEvent = $nameEvent;
$this->date = $date;
$this->organisator = $organisator;
$this->participants = $participants;
}
public function getNameEvent() : string
{
return $this->nameEvent;
}
public function getDateEvent() : string
{
return $this->date;
}
public function getParticipants() : array
{
return $this->participants;
}
}

@ -3,4 +3,69 @@
class Offre
{
/**
* @var string intitulé de l'offre
*/
private string $name;
/**
* @var string Entreprise de l'offre
*/
private string $company;
/**
* @var Compte recruteur
*/
private Compte $recruiter;
/**
* @var string description de l'offre
*/
private string $description;
public function __construct(string $offername,string $offercompany,
string $offermanager,string $description)
{
$this->name = $offername;
$this->company = $offercompany;
$this->recruiter = $offermanager;
$this->description = $description;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return string
*/
public function getCompany(): string
{
return $this->company;
}
/**
* @return Compte|string
*/
public function getRecruiter(): Compte|string
{
return $this->recruiter;
}
/**
* @return string
*/
public function getDescription(): string
{
return $this->description;
}
}

@ -19,3 +19,5 @@
</form>
</body>
</html>

Loading…
Cancel
Save