Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Helpers |
||
22 | { |
||
23 | /** |
||
24 | * Get an entity param for a route. |
||
25 | * |
||
26 | * @param string $param The param name |
||
27 | * @param string $entity The entity class |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | public static function getEntityParam(string $param, string $entity): string |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get an entity path for a route. |
||
38 | * |
||
39 | * @param string $param The param name |
||
40 | * @param string $entity The entity class |
||
41 | * @param string $regex The regex |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public static function getEntityPath(string $param, string $entity, string $regex): string |
||
52 |