mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 23:28:39 +00:00
fix typehint
This commit is contained in:
parent
746db59438
commit
e3b25ce1f4
30
Model/Html/FormElement.php
Normal file
30
Model/Html/FormElement.php
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -62,7 +62,7 @@ class Server extends SocketAbstract
|
||||||
/**
|
/**
|
||||||
* Socket application.
|
* Socket application.
|
||||||
*
|
*
|
||||||
* @var SocketApplication
|
* @var ApplicationAbstract
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $app = null;
|
private $app = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user