| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | trait BadStorageSizeTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Check for a wrong storage size. |
||
| 24 | * |
||
| 25 | * @param int $size Size expressed in number of tokens will be stored. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | * |
||
| 29 | * @throws BadStorageSizeException If $size is less than <code>ExceptionBoundary::STORAGE_SIZE_MIN</code> and |
||
| 30 | * greater than <code>ExceptionBoundary::STORAGE_SIZE_MAX</code>. |
||
| 31 | */ |
||
| 32 | protected function checkBadStorageSize(int $size): void |
||
| 45 |