# user-access-manager/trunk/src/Form/Element/ValueSetFormElementValue.php

User Access Manager, version trunk. 32 lines.

- Page: https://pluginprobe.com/plugins/user-access-manager/trunk/code/src/Form/Element/ValueSetFormElementValue.php
- Raw: https://pluginprobe.com/plugins/user-access-manager/trunk/raw/src/Form/Element/ValueSetFormElementValue.php
- Modified: 2026-08-06T11:11:24+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/trunk/code/src/Form/Element/ValueSetFormElementValue.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace UserAccessManager\Form\Element;

use UserAccessManager\Form\Form;

class ValueSetFormElementValue
{
    use ValueTrait;
    use LabelTrait;

    private bool $isDisabled = false;

    public function __construct(mixed $value, string $label)
    {
        $this->value = $value;
        $this->label = $label;
    }

    public function markDisabled(): void
    {
        $this->isDisabled = true;
    }

    public function isDisabled(): bool
    {
        return $this->isDisabled;
    }
}

```
