I'm new to PHP, an instructor did this Controller class, it's an MVC, and he put __Hospital(){}
without using it, is that necessary?
class Hospital{
private $cod;
private $nom;
private $dir;
public function __Hospital() {
}
public function _Hospital($cod, $nom, $dir) {
$this->cod = $cod;
$this->nom = $nom;
$this->dir = $dir;
}
public function getCod() {
return $this->cod;
}
public function getNom() {
return $this->nom;
}
public function getDir() {
return $this->dir;
}
public function setCod($cod) {
$this->cod = $cod;
}
public function setNom($nom) {
$this->nom = $nom;
}
public function setDir($dir) {
$this->dir = $dir;
}
}