parent
04d571cc88
commit
2424a4c574
@ -1,46 +0,0 @@
|
||||
<?php
|
||||
|
||||
class CharacterEntity
|
||||
{
|
||||
|
||||
private int $id_character;
|
||||
|
||||
private string $name;
|
||||
|
||||
private string $img_path;
|
||||
|
||||
public function __construct(int $id_character, string $name, string $img_path)
|
||||
{
|
||||
$this -> id_character = $id_character;
|
||||
$this -> name = $name;
|
||||
$this -> img_path = $img_path;
|
||||
}
|
||||
|
||||
public function getIdCharacter() : int
|
||||
{
|
||||
return $this -> id_character;
|
||||
}
|
||||
public function getName() : string
|
||||
{
|
||||
return $this -> name;
|
||||
}
|
||||
public function getImgPath() : string
|
||||
{
|
||||
return $this -> img_path;
|
||||
}
|
||||
|
||||
public function setIdCharacter(int $id_character) : void
|
||||
{
|
||||
$this -> id_character = $id_character;
|
||||
}
|
||||
public function setName(string $name) : void
|
||||
{
|
||||
$this -> name = $name;
|
||||
}
|
||||
public function setImgPath(string $img_path) : void
|
||||
{
|
||||
$this -> img_path = $img_path;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in new issue