| Conditions | 5 |
| Paths | 16 |
| Total Lines | 21 |
| Code Lines | 11 |
| 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 (array_key_exists('value', $values)) { |
||
| 33 | $name = $values['value']; |
||
| 34 | } |
||
| 35 | |||
| 36 | if (array_key_exists('name', $values)) { |
||
| 37 | $name = $values['name']; |
||
| 38 | } |
||
| 39 | |||
| 40 | if (array_key_exists('namespace', $values)) { |
||
| 41 | $namespace = $values['namespace']; |
||
| 42 | } |
||
| 43 | |||
| 44 | if (array_key_exists('prefix', $values)) { |
||
| 45 | $prefix = $values['prefix']; |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->name = $name; |
||
| 49 | $this->namespace = $namespace; |
||
| 50 | $this->prefix = $prefix; |
||
| 51 | } |
||
| 53 |