1 | <?php |
||
21 | class IdGenerator extends AbstractIdGenerator |
||
22 | { |
||
23 | //<editor-fold desc="Public Methods"> |
||
24 | /** |
||
25 | * creates a new id |
||
26 | * @param string $creatorFunction the id creator function name to use (if existent) |
||
27 | * @return string the new id |
||
28 | */ |
||
29 | public static function createIdFrom($creatorFunction = 'com_create_guid') |
||
39 | |||
40 | /** |
||
41 | * Generates an identifier for an entity. |
||
42 | * |
||
43 | * @param EntityManager $entityManager |
||
44 | * @param Entity $entity |
||
45 | * @return string |
||
46 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
47 | */ |
||
48 | public function generate(EntityManager $entityManager, $entity): string |
||
52 | //</editor-fold desc="Public Methods"> |
||
53 | |||
54 | } |