xsID   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
namespace AlgoWeb\xsdTypes;
3
4
/**
5
 * The type xsd:ID is used for an attribute that uniquely identifies an element in an XML document.
6
 * An xsd:ID value must be an NCName.  This means that it must start with a letter or underscore,
7
 * and can only contain letters, digits, underscores, hyphens, and periods.
8
 *
9
 * xsd:ID carries several additional constraints:
10
 *
11
 * Their values must be unique within an XML instance, regardless of the attribute's name or its element name.
12
 * A complex type cannot include more than one attribute of type xsd:ID, or any type derived from xsd:ID.
13
 * xsd:ID attributes cannot have default or fixed values specified.
14
 *
15
 * @package AlgoWeb\xsdTypes
16
 */
17
class xsID extends xsNCName
18
{
19
    /**
20
     * Construct.
21
     *
22
     * @param string $value
23
     */
24
    public function __construct($value)
25
    {
26
        parent::__construct($value);
27
    }
28
}
29