ContactsCollection::getItemName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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