| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class MDModel extends Eloquent |
||
| 13 | { |
||
| 14 | use MainMongoTrait, ModelAdditionalMethod, Helper, PlainMongoTrait, RelationshipMongoTrait; |
||
|
|
|||
| 15 | |||
| 16 | protected $connection = 'mongodb'; |
||
| 17 | protected $dates = [ |
||
| 18 | 'deleted_at', |
||
| 19 | 'created_at', |
||
| 20 | 'updated_at', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function getId() |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getCollection() |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param int $size |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function getRandom($size = 3) |
||
| 48 |