| 1 | <?php |
||
| 5 | class VisitorEntity |
||
| 6 | { |
||
| 7 | |||
| 8 | public $name; |
||
| 9 | |||
| 10 | public $surname; |
||
| 11 | |||
| 12 | public $nick; |
||
| 13 | |||
| 14 | public $email; |
||
| 15 | |||
| 16 | public $street; |
||
| 17 | |||
| 18 | public $city; |
||
| 19 | |||
| 20 | public $postal_code; |
||
| 21 | |||
| 22 | public $birthday; |
||
| 23 | |||
| 24 | public $group_name; |
||
| 25 | |||
| 26 | public $group_num; |
||
| 27 | |||
| 28 | public $troop_name; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function toArray() |
||
| 37 | |||
| 38 | } |
||
| 39 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.