Valinor/tests/Fixture/Object/StringableObject.php

24 lines
361 B
PHP
Raw Normal View History

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