Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Lexicon;
/** * Runtime validation options. * * @api */final readonly class ValidationOptions {
public function __construct( public string $mode = 'validate', public bool $strict = TRUE, ) {}
/** * Creates options for validation without value transformation. */ public static function validate(bool $strict = TRUE): self { return new self('validate', $strict); }
/** * Creates options for validation with default insertion. */ public static function parse(bool $strict = TRUE): self { return new self('parse', $strict); }
}