Passed
Push — master ( ed3a21...c78a04 )
by Guido
06:24
created

UserTransformer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 5 1
1
<?php
2
3
namespace Gvera\Helpers\transformers;
4
5
class UserTransformer extends TransformerAbstract
6
{
7
    public function transform(): array
8
    {
9
        return [
10
          'id' => $this->object->getId(),
11
            'email' => $this->object->getEmail()
12
        ];
13
    }
14
}
15