Completed
Push — master ( 402c8e...a49823 )
by Philip
22:11
created

UserReferenceTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUser() 0 4 1
1
<?php
2
3
namespace App\DataFixtures;
4
5
use App\Entity\User;
6
7
trait UserReferenceTrait
8
{
9
    use ReferenceTrait;
10
11
    /**
12
     * @param string $name
13
     *
14
     * @return User
15
     */
16
    public function getUser($name)
17
    {
18
        return $this->getReference($name);
19
    }
20
}
21