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.
47 lines
933 B
47 lines
933 B
<?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;
|
|
}
|
|
|
|
}
|
|
|