# user-access-manager/2.3.16/src/Form/FormFactory.php

User Access Manager, version 2.3.16. 67 lines.

- Page: https://pluginprobe.com/plugins/user-access-manager/2.3.16/code/src/Form/FormFactory.php
- Raw: https://pluginprobe.com/plugins/user-access-manager/2.3.16/raw/src/Form/FormFactory.php
- Modified: 2026-07-30T16:16:40+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.16/code/src/Form/FormFactory.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace UserAccessManager\Form;

use Exception;

class FormFactory
{
    public function createFrom(): Form
    {
        return new Form();
    }

    public function createValueSetFromElementValue(mixed $value, string $label): ValueSetFormElementValue
    {
        return new ValueSetFormElementValue($value, $label);
    }

    public function createMultipleFormElementValue(mixed $value, string $label): MultipleFormElementValue
    {
        return new MultipleFormElementValue($value, $label);
    }

    public function createInput(
        string $id,
        mixed $value = null,
        ?string $label = null,
        ?string $description = null
    ): Input {
        return new Input($id, $value, $label, $description);
    }

    public function createTextarea(
        string $id,
        mixed $value = null,
        ?string $label = null,
        ?string $description = null
    ): Textarea {
        return new Textarea($id, $value, $label, $description);
    }

    public function createSelect(
        string $id,
        array $possibleValues,
        mixed $value = null,
        ?string $label = null,
        ?string $description = null
    ): Select {
        return new Select($id, $possibleValues, $value, $label, $description);
    }

    /**
     * @throws Exception
     */
    public function createRadio(
        string $id,
        array $possibleValues,
        mixed $value = null,
        ?string $label = null,
        ?string $description = null
    ): Radio {
        return new Radio($id, $possibleValues, $value, $label, $description);
    }
}

```
