for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MichaelRubel\ValueObjects\Primitive;
use MichaelRubel\ValueObjects\ValueObject;
/**
* @method static static make(int|float|string|null $text)
*/
class Text extends ValueObject
{
* Create a new instance of the value object.
*
* @param int|float|string|null $text
public function __construct(protected int|float|string|null $text)
//
}
* Get the object value.
* @return string
public function value(): string
return (string) $this->text;