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

UserConfigCollection::getExpectedClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
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