for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Conia\Chuck\Renderer;
use Conia\Chuck\Factory;
use Conia\Chuck\Response;
/** @psalm-api */
class TextRenderer implements Renderer
{
public function __construct(protected Factory $factory)
}
public function render(mixed $data, mixed ...$args): string
return (string)$data;
public function response(mixed $data, mixed ...$args): Response
return Response::fromFactory($this->factory)->text($this->render($data));