Conditions | 4 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
29 | public function __construct(string $value = '') |
||
30 | { |
||
31 | // todo: add some additional alphanum + $ check. |
||
32 | |||
33 | if (empty($value)) { |
||
34 | $value = self::ALL; |
||
35 | } |
||
36 | |||
37 | if ($this->startsWith($value, '$$')) { |
||
38 | $this->isMetadata = true; |
||
39 | } elseif ($this->startsWith($value, '$')) { |
||
40 | $this->isSystem = true; |
||
41 | } |
||
42 | $this->value = $value; |
||
43 | } |
||
44 | |||
80 |