1 | <?php |
||
14 | class xsQName extends xsAnySimpleType |
||
15 | { |
||
16 | use LengthTrait; |
||
17 | |||
18 | /** |
||
19 | * Construct. |
||
20 | * |
||
21 | * @param string $value |
||
22 | */ |
||
23 | public function __construct($value) |
||
28 | |||
29 | protected function isOK() |
||
30 | { |
||
31 | $this->checkLength($this->value); |
||
32 | if (':' == $this->value[0]) { |
||
33 | throw new \InvalidArgumentException('QName cannot start with colon'); |
||
34 | } |
||
35 | $this->checkColen(); |
||
36 | } |
||
37 | |||
38 | private function checkColen() |
||
46 | |||
47 | private function checkParts($bitz) |
||
58 | } |
||
59 |