add docblocks

This commit is contained in:
Dennis Eichhorn 2019-12-30 14:27:41 +01:00
parent 6bff30df32
commit 2346b0606a
2 changed files with 84 additions and 1 deletions

View File

@ -1,15 +1,98 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package phpOMS\Model\Html
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace phpOMS\Model\Html;
/**
* Form element class.
*
* @package phpOMS\Model\Html
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class FormElement
{
/**
* Element id.
*
* @var string
* @since 1.0.0
*/
public string $id;
/**
* Form id.
*
* @var string
* @since 1.0.0
*/
public string $form;
/**
* Element name.
*
* @var string
* @since 1.0.0
*/
public string $name;
/**
* Value is required.
*
* @var bool
* @since 1.0.0
*/
public bool $required;
/**
* Default value.
*
* @var string
* @since 1.0.0
*/
public string $defaultValue;
/**
* Required values which cannot be changed/removed.
*
* @var string
* @since 1.0.0
*/
public string $requiredValue;
/**
* Autosave on change.
*
* @var bool
* @since 1.0.0
*/
public bool $autosave;
/**
* Constructor.
*
* @param string $id Element id
* @param string $form Form id
* @param string $name Element name
* @param bool $required Value is required
* @param string $defaultValue Default value
* @param string $requiredValue Values which cannot be removed/changed
* @param bool $autosave Save on change
*
* @since 1.0.0
*/
public function __construct(
string $id = '',
string $form = '',

View File

@ -70,7 +70,7 @@ class Server extends SocketAbstract
/**
* Constructor.
*
* @param SocketApplication $app socketApplication
* @param ApplicationAbstract $app Socket application
*
* @since 1.0.0
*/