CrearSesion   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A crear() 0 5 1
1
<?php
2
namespace src;
3
4
use src\Sesion;
5
use src\SesionId;
6
use src\FactoryClassInterface;
7
8
class CrearSesion implements FactoryClassInterface
9
{
10
    public function crear(array $array): Sesion
11
    {
12
        return new Sesion(
13
            new SesionId(
14
                $array['sesionId']
15
            )
16
        );
17
    }
18
}
19