mirror of
https://github.com/danog/Valinor.git
synced 2024-12-11 16:49:51 +01:00
24 lines
361 B
PHP
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;
|
|
}
|
|
}
|