for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Igorsgm\TibiaDataApi\Models\Character;
use Igorsgm\TibiaDataApi\Exceptions\ImmutableException;
use Igorsgm\TibiaDataApi\Traits\ImmutableTrait;
use Igorsgm\TibiaDataApi\Traits\SerializableTrait;
class OtherCharacter
{
use ImmutableTrait, SerializableTrait;
/**
* @var string
*/
private $name;
private $world;
private $status;
* OtherCharacter constructor.
* @param string $name
* @param string $world
* @param string $status
* @throws ImmutableException
public function __construct(string $name, string $world, string $status)
$this->handleImmutableConstructor();
$this->name = $name;
$this->world = $world;
$this->status = $status;
}
* @return string
public function getName(): string
return $this->name;
public function getWorld(): string
return $this->world;
public function getStatus(): string
return $this->status;