Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | class MDModel extends Eloquent |
||
9 | { |
||
10 | use MongoSyncTrait, ModelAdditionalMethod; |
||
11 | |||
12 | protected $connection = 'mongodb'; |
||
13 | protected $dates = [ |
||
14 | 'deleted_at', |
||
15 | 'created_at', |
||
16 | 'updated_at' |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function getId() |
||
23 | { |
||
24 | return $this->id; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getCollection() |
||
31 | { |
||
32 | return $this->collection; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @param int $size |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function getRandom($size = 3) |
||
44 | } |
||
45 | } |
||
46 |