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

UserCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 46
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A without() 0 3 1
A getUsers() 0 3 1
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