uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
fields
/
.
/
data
/
OptionData.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\fields\data; use craft\base\Serializable; /** * Class OptionData * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.0.0 */ class OptionData implements Serializable { /** * @var string|null */ public ?string $label = null; /** * @var string|null */ public ?string $value = null; /** * @var bool */ public bool $selected; /** * @var bool * @since 3.5.10 */ public bool $valid; /** * Constructor * * @param string|null $label * @param string|null $value * @param bool $selected * @param bool $valid */ public function __construct(?string $label, ?string $value, bool $selected, bool $valid = true) { $this->label = $label; $this->value = $value; $this->selected = $selected; $this->valid = $valid; } /** * @return string */ public function __toString(): string { return (string)$this->value; } /** * @inheritdoc */ public function serialize(): mixed { return $this->value; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/fields/./data/OptionData.php