UserFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 10 1
1
<?php
2
3
namespace App\Factory;
4
5
use App\Entity\User;
6
7
/**
8
 * Class UserFactory
9
 *
10
 * @package App\Factory
11
 */
12
class UserFactory
13
{
14
    /**
15
     * @param array $data
16
     *
17
     * @return User
18
     */
19
    public function create(array $data)
20
    {
21
        $user = new User();
22
        $user->setTitle($data['title'])
23
            ->setUuid($data['uuid'])
24
            ->setGuild($data['guild'])
25
            ;
26
27
        return $user;
28
    }
29
}
30