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

UserTransformer::transform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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