HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/application/datavalueobjects/FormElement.php
<?php

namespace LimeSurvey\Datavalueobjects;

/**
 * @todo Is this class needed, or can it be included in widget DVOs?
 * @todo $name is always null, always === $id.
 */
class FormElement
{
    /** @var string */
    public $id;

    /** @var string|null */
    public $name;

    /** @var string */
    public $help;

    /** @var mixed */
    public $value;

    /** @var array */
    public $options;

    /**
     * @param string $id
     * $param string|null $name Null if same as id
     * @param string $help
     * @param mixed $value
     * @param array $options
     */
    public function __construct(
        $id,
        $name,
        $help,
        $value,
        $options
    ) {
        $this->id = $id;
        $this->name = $name;
        $this->help = $help;
        $this->value = $value;
        $this->options = $options;
    }
}