1 | <?php |
||
12 | abstract class AbstractNamingStrategy implements NamingStrategyInterface |
||
13 | { |
||
14 | protected abstract function getUpperCamelCaseName(AbstractBeanPropertyDescriptor $property): string; |
||
15 | |||
16 | protected function getLowerCamelCaseName(AbstractBeanPropertyDescriptor $property): string |
||
20 | |||
21 | /** |
||
22 | * Returns the getter name generated for the property passed in parameter. |
||
23 | * |
||
24 | * @param AbstractBeanPropertyDescriptor $property |
||
25 | * @return string |
||
26 | */ |
||
27 | public function getGetterName(AbstractBeanPropertyDescriptor $property): string |
||
31 | |||
32 | /** |
||
33 | * Returns the setter name generated for the property passed in parameter. |
||
34 | * |
||
35 | * @param AbstractBeanPropertyDescriptor $property |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getSetterName(AbstractBeanPropertyDescriptor $property): string |
||
42 | |||
43 | /** |
||
44 | * Returns the variable name used in the setter generated for the property passed in parameter. |
||
45 | * |
||
46 | * @param AbstractBeanPropertyDescriptor $property |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getVariableName(AbstractBeanPropertyDescriptor $property): string |
||
53 | |||
54 | /** |
||
55 | * Returns the label of the JSON property for the property passed in parameter. |
||
56 | * |
||
57 | * @param AbstractBeanPropertyDescriptor $property |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getJsonProperty(AbstractBeanPropertyDescriptor $property): string |
||
64 | |||
65 | /** |
||
66 | * Returns the name of the find method attached to an index. |
||
67 | * |
||
68 | * @param AbstractBeanPropertyDescriptor[] $elements The list of properties in the index. |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getFindByIndexMethodName(Index $index, array $elements): string |
||
81 | } |
||
82 |