1 | <?php |
||
17 | class IndexSuffixFinder |
||
18 | { |
||
19 | /** |
||
20 | * Constructs index name with date suffix. Sets name in the connection. |
||
21 | * |
||
22 | * E.g. 2022.03.22-5 (if 4 indexes exists already for given date) |
||
23 | * |
||
24 | * @param Manager $manager Connection to act upon. |
||
25 | * @param null|\DateTime $time Date for which the suffix will be based on. |
||
26 | * Current date if null. |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function setNextFreeIndex(Manager $manager, \DateTime $time = null) |
||
52 | } |
||
53 |