Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function get() : Collection |
||
27 | { |
||
28 | $table = $this->table; |
||
29 | $query = $this->getSQL(); |
||
|
|||
30 | $model = $this->db->create($table); |
||
31 | return Collection::fromIterable($this->fetchAllAssociative()) |
||
32 | ->map(static fn ($value): Model => ($model)->setProperties($value)->setLoaded()); |
||
33 | } |
||
42 |