phpOMS/Model/Html/FormElement.php
2019-12-30 14:06:51 +01:00

31 lines
773 B
PHP

<?php
class FormElement
{
public string $id;
public string $form;
public string $name;
public bool $required;
public string $defaultValue;
public string $requiredValue;
public bool $autosave;
public function __construct(
string $id = '',
string $form = '',
string $name = '',
bool $required = false,
string $defaultValue = '',
string $requiredValue = '',
bool $autosave = false
) {
$this->id = $id;
$this->form = $form;
$this->name = $name;
$this->required = $required;
$this->defaultValue = $defaultValue;
$this->requiredValue = $requiredValue;
$this->autosave = $autosave;
}
}