Separated   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 11
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getList() 0 8 1
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