| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class MetaDataAdapter |
||
| 8 | { |
||
| 9 | private $metadata; |
||
| 10 | |||
| 11 | private $entityName; |
||
| 12 | |||
| 13 | 1 | public function setClassMetadata($metadata) |
|
| 14 | { |
||
| 15 | 1 | $this->metadata = $metadata; |
|
| 16 | 1 | } |
|
| 17 | |||
| 18 | 1 | public function setEntityName($entityName) |
|
| 19 | { |
||
| 20 | 1 | $this->entityName = $entityName; |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | 1 | public function getFields() |
|
| 24 | { |
||
| 25 | 1 | return array_keys($this->metadata->fieldMappings); |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function getEntityAlias() |
|
| 35 | } |
||
| 36 | } |
||
| 37 |