# user-access-manager/2.3.20/src/Form/Element/FormElement.php

User Access Manager, version 2.3.20. 34 lines.

- Page: https://pluginprobe.com/plugins/user-access-manager/2.3.20/code/src/Form/Element/FormElement.php
- Raw: https://pluginprobe.com/plugins/user-access-manager/2.3.20/raw/src/Form/Element/FormElement.php
- Modified: 2026-09-10T09:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/user-access-manager/2.3.20/code/src/Form/Element/FormElement.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace UserAccessManager\Form\Element;

use UserAccessManager\Form\Form;

abstract class FormElement
{
    use ValueTrait;
    use LabelTrait;

    public function __construct(
        protected string $id,
        mixed $value = null,
        ?string $label = null,
        protected ?string $description = null
    ) {
        $this->value = $value;
        $this->label = $label;
    }

    public function getId(): string
    {
        return $this->id;
    }

    public function getDescription(): ?string
    {
        return $this->description;
    }
}

```
