/
dimamir
/
Wsdl_PackageGenerator
Обзор
Документация
Войти
/
dimamir
/
Wsdl_PackageGenerator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/File/Validation/MinOccursRule.php
33 строки
934 B
Mikaël DELSOL
issue #57 - adapt changes to PHP >= 7.4
13 июл 2021, 23:30
13 июл 2021, 23:30
ec87ed9
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace WsdlToPhp\PackageGenerator\File\Validation; /** * @see https://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#p-min_occurs * This class is intended to show that this cas has not been forgotten. It simply isn't used as the minimum occurrences count can't be checked. * Checking the minimum occurrences count would be meaningful just before the request is sent which is not done currently. */ class MinOccursRule extends AbstractMinMaxRule { public function name(): string { return 'minOccurs'; } public function symbol(): string { return ''; } final public function testConditions(string $parameterName, $value, bool $itemType = false): string { return ''; } final public function exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false): string { return ''; } }