Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait InflectionTableizeTrait |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Converts a class name to its table name according to rails |
||
16 | * naming conventions. |
||
17 | * |
||
18 | * Converts "Person" to "people" |
||
19 | * |
||
20 | * @param string $class_name Class name for getting related table_name. |
||
21 | * @return string plural_table_name |
||
22 | */ |
||
23 | protected function doTableize($class_name) |
||
28 |