| Conditions | 6 |
| Paths | 17 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function __construct(array $values = [], ?string $name = null, ?string $namespace = null, ?string $prefix = null) |
||
| 31 | { |
||
| 32 | if (0 !== count($values)) { |
||
| 33 | if (array_key_exists('value', $values)) { |
||
| 34 | $name = $values['value']; |
||
| 35 | } |
||
| 36 | |||
| 37 | if (array_key_exists('name', $values)) { |
||
| 38 | $name = $values['name']; |
||
| 39 | } |
||
| 40 | |||
| 41 | if (array_key_exists('namespace', $values)) { |
||
| 42 | $namespace = $values['namespace']; |
||
| 43 | } |
||
| 44 | |||
| 45 | if (array_key_exists('prefix', $values)) { |
||
| 46 | $prefix = $values['prefix']; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->name = $name; |
||
| 51 | $this->namespace = $namespace; |
||
| 52 | $this->prefix = $prefix; |
||
| 53 | } |
||
| 55 |