for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Enjoys\Forms\Elements;
use Enjoys\Forms\AttributeFactory;
use Enjoys\Forms\Element;
class Image extends Element
{
protected string $type = 'image';
public function __construct(string $name, ?string $src = null)
parent::__construct($name);
if (!is_null($src)) {
$this->setAttribute(AttributeFactory::create('src', $src));
}