for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Form;
use Yiisoft\Html\Tag\Label;
final class FieldFactoryConfig
{
private ?string $template = null;
private ?bool $setInputIdAttribute = null;
private ?Label $labelTag = null;
private ?bool $setLabelForAttribute = null;
private array $inputTextConfig = [];
public function template(?string $template): self
$new = clone $this;
$new->template = $template;
return $new;
}
public function setInputIdAttribute(?bool $value): self
$new->setInputIdAttribute = $value;
public function labelTag(?Label $tag): self
$new->labelTag = $tag;
public function setLabelForAttribute(?bool $value): self
$new->setLabelForAttribute = $value;
public function inputTextConfig(array $config): self
$new->inputTextConfig = $config;
public function getTemplate(): ?string
return $this->template;
public function getSetInputIdAttribute(): ?bool
return $this->setInputIdAttribute;
public function getLabelTag(): ?Label
return $this->labelTag;
public function getSetLabelForAttribute(): ?bool
return $this->setLabelForAttribute;
public function getInputTextConfig(): array
return $this->inputTextConfig;