Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | abstract class AbstractPropertyMap implements PropertyMapInterface |
||
24 | { |
||
25 | /** |
||
26 | * Assoc array of properties |
||
27 | * camelCase properties => Lower case underscore array keys |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected array $map; |
||
32 | |||
33 | /** |
||
34 | * Return the property map |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | 62 | public function getMap(): array |
|
39 | { |
||
40 | 62 | return $this->map ?? []; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * Set the property map |
||
45 | * |
||
46 | * @param array $map Assoc array of property data |
||
47 | * |
||
48 | * @return self |
||
49 | */ |
||
50 | 62 | public function setMap(array $map): self |
|
55 | } |
||
56 | } |
||
57 |