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

Invitation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 13

Duplication

Lines 16
Ratio 100 %

Importance

Changes 0
Metric Value
dl 16
loc 16
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 13
nc 1
nop 2
1
<?php
2
namespace Lyal\Checkr\Entities\Resources;
3
4
5
use Lyal\Checkr\Traits\Creatable;
6
use Lyal\Checkr\Traits\Deleteable;
7
use Lyal\Checkr\Traits\Listable;
8
9
class Invitation extends AbstractResource
10
{
11
    use Listable, Creatable, Deleteable;
12
13 View Code Duplication
    public function __construct($values = NULL, $client = NULL)
0 ignored issues
show
Duplication introduced by
This method 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...
14
    {
15
        $this->setFields([
16
            'id',
17
            'object',
18
            'uri',
19
            'invitation_url',
20
            'status',
21
            'created_at',
22
            'expires_at',
23
            'deleted_at',
24
            'completed_at',
25
            'package',
26
            'candidate_id'
27
        ]);
28
        parent::__construct($values, $client);
29
30
    }
31
}