for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Enjoys\Forms\Renderer;
use Enjoys\Forms\Form;
abstract class Renderer
{
private Form $form;
public function __construct(Form $form = null)
$this->form = $form ?? new Form();
}
abstract public function output(): mixed;
public function setForm(Form $form): self
$this->form = $form;
return $this;
public function getForm(): Form
return $this->form;