mirror of
https://github.com/danog/Valinor.git
synced 2025-01-11 23:28:23 +01:00
23 lines
360 B
PHP
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;
|
||
|
}
|
||
|
}
|