Stream.php
399 字节
<?php
namespace Lackoxygen\TiktokShop\Mock;
use Lackoxygen\TiktokShop\Util\Json;
class Stream
{
protected string $content;
public function __construct($content)
{
if (is_array($content)) {
$content = Json::marshal($content);
}
$this->content = $content;
}
public function __toString(): string
{
return $this->content;
}
}