Passed
Push — master ( 04c2f7...8e7d49 )
by Christian
13:07 queued 11s
created

UserConfigCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 10
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getExpectedClass() 0 3 1
A getApiAlias() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\System\User\Aggregate\UserConfig;
4
5
use Shopware\Core\Framework\DataAbstractionLayer\EntityCollection;
6
7
/**
8
 * @method void                  add(UserConfigEntity $entity)
9
 * @method UserConfigEntity[]    getIterator()
10
 * @method UserConfigEntity[]    getElements()
11
 * @method UserConfigEntity|null get(string $key)
12
 * @method UserConfigEntity|null first()
13
 * @method UserConfigEntity|null last()
14
 */
15
class UserConfigCollection extends EntityCollection
16
{
17
    public function getApiAlias(): string
18
    {
19
        return 'user_config_collection';
20
    }
21
22
    protected function getExpectedClass(): string
23
    {
24
        return UserConfigEntity::class;
25
    }
26
}
27