Makes no sense because only string public ?BaseStringL11nType $type = null; /** * Ref. * * @var int * @since 1.0.0 */ public int $ref = 0; /** * Language. * * @var string * @since 1.0.0 */ public string $language = ISO639x1Enum::_EN; /** * Country. * * @var string * @since 1.0.0 */ public string $country = ISO3166TwoEnum::_USA; /** * Content. * * @var string * @since 1.0.0 */ public string $content = ''; /** * Constructor. * * @param string $content Localized content * @param string $language Language * @param string $country Country * * @since 1.0.0 */ public function __construct( string $content = '', string $language = ISO639x1Enum::_EN, string $country = ISO3166TwoEnum::_USA ) { $this->content = $content; $this->language = $language; $this->country = $country; $this->type = new NullBaseStringL11nType(); } /** * Get id * * @return int * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Get language * * @return string * * @since 1.0.0 */ public function getLanguage() : string { return $this->language; } /** * Set language * * @param string $language Language * * @return void * * @since 1.0.0 */ public function setLanguage(string $language) : void { $this->language = $language; } /** * Get country * * @return string * * @since 1.0.0 */ public function getCountry() : string { return $this->country; } /** * Set country * * @param string $country Country * * @return void * * @since 1.0.0 */ public function setCountry(string $country) : void { $this->country = $country; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'content' => $this->content, 'ref' => $this->ref, 'language' => $this->language, 'country' => $this->country, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }