Passed
Push — master ( d898ef...46a72e )
by Christopher
02:06 queued 27s
created

xsQName::isOK()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 5
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace AlgoWeb\xsdTypes;
4
5
/**
6
 * Class xsQName
7
 * @package AlgoWeb\xsdTypesThe type xsd:QName represents an XML namespace-qualified name. A xsd:QName value consists
8
 * of a prefix and a local part, separated by a colon, both of which are NCName values. The prefix and colon are
9
 * optional, but if they are not present, it is assumed that either the name is namespace-qualified by other means
10
 * (e.g., by a default namespace declaration), or the name is not in a namespace.
11
 */
12 View Code Duplication
class xsQName extends xsAnySimpleType
1 ignored issue
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    use LengthTrait;
15
16
    /**
17
     * Construct
18
     *
19
     * @param string $value
20
     */
21
    public function __construct($value)
22
    {
23
        parent::__construct($value);
24
        $this->setWhiteSpaceFacet("collapse");
25
    }
26
27
    protected function isOK()
28
    {
29
        $this->checkMaxLength($this->__value);
30
        $this->checkMinLength($this->__value);
31
    }
32
}
33