AIKEEDO / src /Shared /Domain /ValueObjects /StringValue.php
Softin Trading
Initial Commit from GitHub.
cf14c12
Raw History Blame Contribute Delete
446 Bytes
<?php
declare(strict_types=1);
namespace Shared\Domain\ValueObjects;
use JsonSerializable;
class StringValue implements JsonSerializable
{
public readonly string $value;
/**
* @param string $value
* @return void
*/
public function __construct(string $value)
{
$this->value = $value;
}
/** @inheritDoc */
public function jsonSerialize(): string
{
return $this->value;
}
}