DELETE : class métier double

php
Victor SOULIER 1 year ago
parent 5e29e91a78
commit 95faf5958d

@ -1,138 +0,0 @@
<?php
namespace model;
class Scientist
{
private int $id;
private string $name;
private string $firstName;
private string $photo;
private string $description;
private Theme $theme;
private Difficulty $difficulty;
/**
* @param int $id
* @param string $name
* @param string $firstName
* @param string $photo
* @param string $description
* @param Theme $theme
* @param Difficulty $difficulty
*/
public function __construct(int $id, string $name, string $firstName, string $photo, string $description, Theme $theme, Difficulty $difficulty)
{
$this->id = $id;
$this->name = $name;
$this->firstName = $firstName;
$this->photo = $photo;
$this->description = $description;
$this->theme = $theme;
$this->difficulty = $difficulty;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
*/
public function setName(string $name): void
{
$this->name = $name;
}
/**
* @return string
*/
public function getFirstName(): string
{
return $this->firstName;
}
/**
* @param string $firstName
*/
public function setFirstName(string $firstName): void
{
$this->firstName = $firstName;
}
/**
* @return string
*/
public function getPhoto(): string
{
return $this->photo;
}
/**
* @param string $photo
*/
public function setPhoto(string $photo): void
{
$this->photo = $photo;
}
/**
* @return string
*/
public function getDescription(): string
{
return $this->description;
}
/**
* @param string $description
*/
public function setDescription(string $description): void
{
$this->description = $description;
}
/**
* @return Theme
*/
public function getTheme(): Theme
{
return $this->theme;
}
/**
* @param Theme $theme
*/
public function setTheme(Theme $theme): void
{
$this->theme = $theme;
}
/**
* @return Difficulty
*/
public function getDifficulty(): Difficulty
{
return $this->difficulty;
}
/**
* @param Difficulty $difficulty
*/
public function setDifficulty(Difficulty $difficulty): void
{
$this->difficulty = $difficulty;
}
}

@ -1,11 +0,0 @@
<?php
namespace model;
enum Theme
{
case Maths;
case Physics;
case Chemistry;
case Biology;
}

@ -1,39 +0,0 @@
<?php
namespace model;
class User
{
private int $id;
private string $username;
private string $password;
/**
* @param int $id
* @param string $username
* @param string $password
*/
public function __construct(int $id, string $username, string $password)
{
$this->id=$id;
$this->username=$username;
$this->password=$password;
}
public function getId(): int
{
return $this->id;
}
public function getUsername(): string
{
return $this->username;
}
public function setUsername(string $username): void
{
$this->username=$username;
}
public function setPassword(string $password): void
{
$this->password=$password;
}
}
Loading…
Cancel
Save