Completed
Push — develop-3.0 ( 4fe777...24fc5d )
by Mohamed
09:15
created

Fetcher   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLatestMessages() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Tinyissue package.
5
 *
6
 * (c) Mohamed Alsharaf <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Tinyissue\Repository\Message\Queue;
13
14
use Tinyissue\Repository\Repository;
15
16
class Fetcher extends Repository
17
{
18
    public function getLatestMessages()
19
    {
20
        return $this->model->with('changeBy', 'model')->orderBy('created_at', 'DESC')->orderBy('id', 'DESC')->get();
21
    }
22
}
23