| Total Complexity | 2 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | trait DebugEntityDataObjectIds |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The spl_object_hash |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $debugObjectHash; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The UUID as a string, only for debugging purposes |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $debugIdAsString; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * A rough approximation of an auto incrementing ID - only for debugging purposes, no functional purpose |
||
| 25 | * |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | private $debugCreationIncrement; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * When creating a new Entity, we track the increment to help with identifying Entities |
||
| 32 | * |
||
| 33 | * @param bool $created |
||
| 34 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) |
||
| 35 | */ |
||
| 36 | private function initDebugIds(bool $created = false) |
||
| 47 |