Valinor/tests/Fixture/Object/StringableObject.php
2022-04-09 17:44:32 +02:00

24 lines
361 B
PHP

<?php
declare(strict_types=1);
namespace CuyZ\Valinor\Tests\Fixture\Object;
/**
* @PHP8.0 implement Stringable
*/
final class StringableObject
{
private string $value;
public function __construct(string $value = 'foo')
{
$this->value = $value;
}
public function __toString(): string
{
return $this->value;
}
}