mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-02 13:41:21 +00:00
21 lines
333 B
PHP
21 lines
333 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Cell;
|
|
|
|
class StringableObject
|
|
{
|
|
private int|string $value;
|
|
|
|
public function __construct(int|string $value = 'abc')
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return (string) $this->value;
|
|
}
|
|
}
|