Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function toArray() |
||
12 | { |
||
13 | return [ |
||
14 | 'id' => $this->id, |
||
15 | 'name' => $this->name, |
||
16 | 'description' => $this->description, |
||
17 | 'user_id' => $this->user_id, |
||
18 | 'completed' => $this->completed? true:false, |
||
19 | 'created_at' => $this->created_at."", |
||
20 | 'updated_at' => $this->updated_at."", |
||
21 | ]; |
||
24 |