Completed
Push — development ( 616ff4...ce498d )
by
unknown
15s queued 10s
created

SelfiePhoto   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 10 1
1
<?php
2
3
namespace WeDevBr\Mati\Inputs;
4
5
/**
6
 * Wrapper for identity input
7
 *
8
 * @author Gabriel Mineiro <[email protected]>
9
 */
10
class SelfiePhoto extends BaseInput
11
{
12
    use HasType;
13
14
    public function toArray()
15
    {
16
        return [
17
            'inputType' => 'selfie-photo',
18
            'data' => [
19
                'type' => $this->type,
20
                'filename' => $this->getFileName()
21
            ]
22
        ];
23
    }
24
}
25