1 | <?php |
||
5 | trait TimeTrait |
||
6 | { |
||
7 | /** |
||
8 | * Time Entries |
||
9 | * GET /projects/{id}/time_entries.json |
||
10 | * |
||
11 | * @return mixed |
||
12 | */ |
||
13 | public function time() |
||
17 | |||
18 | /** |
||
19 | * Create Time Entry |
||
20 | * POST /projects/{id}/time_entries.json |
||
21 | * |
||
22 | * @param $data |
||
23 | * |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function createTime($data) |
||
30 | } |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: