GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — xmlvalid-php/src/Model/FixAsk.php at main · xmlvalid/xmlvalid-php Expand file tree/ Copy pathFixAsk.phpMore file actions 42 lines (38 loc) · 1.44 KB / Copy pathFixAsk.phpFile metadata and controls42 lines (38 loc) · 1.44 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 <?php declare(strict_types=1); namespace Xmlvalid\Model; /** A fix that needs a value: answer it in fixValues by its key. */ final class FixAsk { /** * @param list<string> $options The codes to choose from (units, billing modes) */ public function __construct( /** buyer-reference, endpoint:buyer, billing-mode, unit:Stk, contact:email */ public readonly string $key, public readonly ?string $rule, /** "Buyer reference (BT-10)" */ public readonly string $label, /** text, unit, billing-mode, endpoint, email or phone. */ public readonly string $kind, public readonly bool $answered, public readonly ?string $hint = null, /** A value read from the document, when there is one. */ public readonly ?string $suggested = null, public readonly array $options = [], ) {} /** @param array<string, mixed> $data */ public static function fromArray(array $data): self { return new self( key: Data::string($data, 'key'), rule: Data::nullableString($data, 'rule'), label: Data::string($data, 'label'), kind: Data::string($data, 'kind', 'text'), answered: Data::bool($data, 'answered'), hint: Data::nullableString($data, 'hint'), suggested: Data::nullableString($data, 'suggested'), options: Data::strings($data, 'options'), ); } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |