Completed
Push — master ( 73f026...dc38fa )
by Sebastian
04:16
created

PersonDbRepository::getAllOnline()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 7
rs 9.4285
1
<?php
2
3
namespace App\Repositories\Database;
4
5
use App\Foundation\Repositories\DbRepository;
6
use App\Repositories\PersonRepository;
7
use Illuminate\Support\Collection;
8
9
class PersonDbRepository extends DbRepository implements PersonRepository
10
{
11
    public function getAll() : Collection
12
    {
13
        return $this->query()
14
            ->orderBy('order_column')
15
            ->get();
16
    }
17
}
18