| Total Complexity | 8 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class EntityBag extends Transporter |
||
| 14 | { |
||
| 15 | private Entity $entity; |
||
| 16 | |||
| 17 | 1 | public function setEntity(Entity $entity): self |
|
| 18 | { |
||
| 19 | 1 | $this->entity = $entity; |
|
| 20 | |||
| 21 | 1 | return $this; |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public function getEntity(): Entity |
|
| 27 | } |
||
| 28 | |||
| 29 | 2 | public function setField($field, $value): Transporter |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function removeField($field): void |
|
| 50 | } |
||
| 51 | |||
| 52 | 1 | public function setFields(array $data): self |
|
| 61 |