/
dimamir
/
Wsdl_PackageGenerator
Обзор
Документация
Войти
/
dimamir
/
Wsdl_PackageGenerator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/File/Validation/MaxInclusiveRule.php
30 строк
1 KB
Mikaël DELSOL
issue #124 - implement PHP >= 7.4 tasks
01 мар 2021, 22:36
01 мар 2021, 22:36
8447c9b
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace WsdlToPhp\PackageGenerator\File\Validation; /** * @see https://www.w3.org/TR/xmlschema-2/#rf-maxInclusive * @see https://www.w3.org/TR/xmlschema-2/#d0e11648 for Examples: * dateTime duration result * 2000-01-12T12:13:14Z P1Y3M5DT7H10M3.3S 2001-04-17T19:23:17.3Z * 2000-01 -P3M 1999-10 * 2000-01-12 PT33H 2000-01-13 * Validation Rule: maxInclusive Valid * A value in an ·ordered· ·value space· is facet-valid with respect to ·maxInclusive·, determined as follows: * - 1 if the ·numeric· property in {fundamental facets} is true, then the value ·must· be numerically less than or equal to {value}; * - 2 if the ·numeric· property in {fundamental facets} is false (i.e., {base type definition} is one of the date and time related datatypes), then the value ·must· be chronologically less than or equal to {value}; */ final class MaxInclusiveRule extends AbstractBoundRule { public function name(): string { return 'maxInclusive'; } public function symbol(): string { return self::SYMBOL_MAX_INCLUSIVE; } }