| 1 | <?php | ||
| 9 | class OtherCharacter | ||
| 10 | { | ||
| 11 | use ImmutableTrait, SerializableTrait; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * @var string | ||
| 15 | */ | ||
| 16 | private $name; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * @var string | ||
| 20 | */ | ||
| 21 | private $world; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @var string | ||
| 25 | */ | ||
| 26 | private $status; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * OtherCharacter constructor. | ||
| 30 | * @param string $name | ||
| 31 | * @param string $world | ||
| 32 | * @param string $status | ||
| 33 | * @throws ImmutableException | ||
| 34 | */ | ||
| 35 | public function __construct(string $name, string $world, string $status) | ||
| 43 | |||
| 44 | /** | ||
| 45 | * @return string | ||
| 46 | */ | ||
| 47 | public function getName(): string | ||
| 51 | |||
| 52 | /** | ||
| 53 | * @return string | ||
| 54 | */ | ||
| 55 | public function getWorld(): string | ||
| 59 | |||
| 60 | /** | ||
| 61 | * @return string | ||
| 62 | */ | ||
| 63 | public function getStatus(): string | ||
| 67 | } | ||
| 68 |