| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait EntityIdAwareTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $entityId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return int |
||
| 19 | */ |
||
| 20 | public function getEntityId(): int |
||
| 21 | { |
||
| 22 | return $this->entityId; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $entityId |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function setEntityId(int $entityId) |
||
| 33 | } |
||
| 34 | } |