Test Failed
Push — master ( 7c4720...fd955c )
by Lyal
04:00 queued 14s
created

Geo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 12

Duplication

Lines 18
Ratio 100 %

Importance

Changes 0
Metric Value
dl 18
loc 18
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 12
nc 1
nop 2
1
<?php
2
namespace Lyal\Checkr\Entities\Resources;
3
4
5
use Lyal\Checkr\Traits\Deleteable;
6
7 View Code Duplication
class Geo extends AbstractResource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
    use Deleteable;
10
11
    public function __construct($values = NULL, $client = NULL)
12
    {
13
        $this->setFields([
14
            'id',
15
            'object',
16
            'uri',
17
            'created_at',
18
            'name',
19
            'state',
20
            'deleted_at'
21
        ]);
22
23
        $this->setHidden([
24
            'candidate_id',
25
            'report_id',
26
        ]);
27
28
        parent::__construct($values, $client);
29
30
31
    }
32
}