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

SelfiePhoto::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
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