Passed
Branch master (350ff0)
by Chris
18:33
created

UserCollection::without()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Leonidas\Library\Core\Models\User;
4
5
use Leonidas\Library\Core\Models\AbstractWpModelCollection;
6
use WP_User;
7
8
class UserCollection extends AbstractWpModelCollection
9
{
10
    /**
11
     * @var WP_User
12
     */
13
    protected $users;
14
15
    /**
16
     *
17
     */
18
    protected const ID_KEY = '';
19
20
    /**
21
     *
22
     */
23
    protected const NAME_KEY = '';
24
25
    /**
26
     *
27
     */
28
    protected const SLUG_KEY = '';
29
30
    /**
31
     *
32
     */
33
    protected const OBJECT_TYPE = '';
34
35
    /**
36
     *
37
     */
38
    protected const COLLECTION = 'users';
39
40
    /**
41
     *
42
     */
43
    public function getUsers()
44
    {
45
        return $this->getCollection();
46
    }
47
48
    /**
49
     *
50
     */
51
    public function without(UserCollection $collection)
52
    {
53
        return parent::without($collection);
54
    }
55
}
56