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