1 | <?php |
||
20 | trait PropertyTrait |
||
21 | { |
||
22 | /** |
||
23 | * Sets the property value for the object |
||
24 | * |
||
25 | * @param string $key |
||
26 | * @param mixed $value |
||
27 | * @param bool $override |
||
28 | * @param bool $isCollection Boolean to indicate Doctrine Collections |
||
29 | * @return Object |
||
30 | * @throws \Exception if setting value has failed |
||
31 | */ |
||
32 | 4 | public function setPropertyValue($key, $value, $override = false, $isCollection = false) |
|
56 | |||
57 | /** |
||
58 | * Get property value |
||
59 | * |
||
60 | * @param $key |
||
61 | * @return mixed |
||
62 | */ |
||
63 | public function getPropertyValue($key) { |
||
70 | |||
71 | /** |
||
72 | * Converts snake_case to CamelCase to convert property names to getters |
||
73 | * |
||
74 | * @param string $propertyKey |
||
75 | * @return string |
||
76 | */ |
||
77 | protected function getMethodName($propertyKey) |
||
83 | } |