Passed
Push — master ( da3c73...a3b48d )
by Evgenii
02:05
created

ContactsCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 3
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getItemName() 0 3 1
A getItemClass() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the ddd-common.
5
 *
6
 * Copyright 2021 Evgenii Dudal <[email protected]>.
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 * @package ddd-common
11
 */
12
13
namespace RobotE13\DDD\Entities\Collection\Contact;
14
15
use RobotE13\DDD\Entities\Collection\AbstractCollection;
16
17
/**
18
 * Description of UserContacts
19
 *
20
 * @author Evgenii Dudal <[email protected]>
21
 */
22
final class ContactsCollection extends AbstractCollection
23
{
24
25 2
    public function getItemClass(): string
26
    {
27 2
        return Contact::class;
28
    }
29
30 1
    public static function getItemName(): string
31
    {
32 1
        return 'Contact';
33
    }
34
35
}
36