xsNormalizedString   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
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace AlgoWeb\xsdTypes;
3
4
/**
5
 * The type xsd:normalizedString represents a character string that may contain any Unicode character allowed by XML.
6
 * Certain characters, namely the "less than" symbol (<) and the ampersand (&), must be escaped
7
 * (using the entities &lt; and &amp;, respectively) when used in strings in XML instances.
8
 *
9
 * The xsd:normalizedString type has a whiteSpace facet of replace, which means that the processor replaces each
10
 * carriage return, line feed, and tab by a single space.  This processing is equivalent to the processing of CDATA
11
 * attribute values in XML 1.0.  There is no collapsing of multiple consecutive spaces into a single space. Class
12
 * xsNormalizedString
13
 *
14
 * @package AlgoWeb\xsdTypes
15
 */
16
class xsNormalizedString extends xsString
17
{
18
    /**
19
     * Construct.
20
     *
21
     * @param string $value
22
     */
23
    public function __construct($value)
24
    {
25
        parent::__construct($value);
26
        $this->setWhiteSpaceFacet('replace');
27
    }
28
}
29