Valinor/tests/Fixture/Object/StringableObject.php
Romain Canon 396f64a524 feat: initial release
🎉
2021-11-28 18:21:56 +01:00

23 lines
360 B
PHP

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