xsName   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace AlgoWeb\xsdTypes;
3
4
/**
5
 * The type xsd:Name represents an XML name, which can be used as an element-type name or attribute name, among other
6
 * things.  Specifically, this means that values must start with a letter, underscore(_), or colon (:), and may contain
7
 * only letters, digits, underscores (_), colons (:), hyphens (-), and periods (.).  Colons should only be used to
8
 * separate namespace prefixes from local names.
9
 *
10
 * @package AlgoWeb\xsdTypes
11
 */
12
class xsName extends xsToken
13
{
14
    /**
15
     * Construct.
16
     *
17
     * @param string $value
18
     */
19
    public function __construct($value)
20
    {
21
        parent::__construct($value);
22
        $this->setPatternFacet('(\i)(\c)*');
23
    }
24
}
25