| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class EntityAccessLimitException extends EntityLookupException { |
||
| 15 | private int $entityAccessCount; |
||
| 16 | private int $entityAccessLimit; |
||
| 17 | |||
| 18 | public function __construct( EntityId $entityId, int $entityAccessCount, int $entityAccessLimit ) { |
||
| 19 | parent::__construct( |
||
| 20 | $entityId, |
||
| 21 | 'Too many entities loaded, must not load more than ' . $entityAccessLimit . ' entities.' |
||
| 22 | ); |
||
| 23 | $this->entityAccessCount = $entityAccessCount; |
||
| 24 | $this->entityAccessLimit = $entityAccessLimit; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getEntityAccessCount(): int { |
||
| 28 | return $this->entityAccessCount; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getEntityAccessLimit(): int { |
||
| 33 | } |
||
| 34 | } |
||
| 35 |