Passed
Branch feature/php8.3 (4d3b0a)
by Tim
17:15
created

UnsignedLongValue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\Type;
6
7
use SimpleSAML\XML\Assert\Assert;
8
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
9
10
/**
11
 * @package simplesaml/xml-common
12
 */
13
class UnsignedLongValue extends NonNegativeIntegerValue
14
{
15
    public const string SCHEMA_TYPE = 'unsignedLong';
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_STRING, expecting '=' on line 15 at column 24
Loading history...
16
17
18
    /**
19
     * Validate the value.
20
     *
21
     * @param string $value
22
     * @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
23
     */
24
    protected function validateValue(string $value): void
25
    {
26
        Assert::validUnsignedLong($this->sanitizeValue($value), SchemaViolationException::class);
27
    }
28
}
29