MOON
Server: Apache
System: Linux server1.primemusicproductions.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User: primrwxj (1001)
PHP: 8.3.3
Disabled: NONE
Upload Files
File: /home/primrwxj/thepassiveincomeideas.com/survey/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;
    }
}