Separated::getList()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace SET\Handlers\Calendar;
4
5
use Illuminate\Database\Eloquent\Collection;
6
use SET\User;
7
8
class Separated extends CollectionList
9
{
10
    public function getList() : Collection
11
    {
12
        return User::where(function ($q) {
13
            $q->where('status', 'separated')->orWhere('status', 'destroyed');
14
        })
15
            ->whereBetween('destroyed_date', [$this->start, $this->end])
16
            ->get();
17
    }
18
}
19