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

Employer::__construct()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 27
Code Lines 20

Duplication

Lines 27
Ratio 100 %

Importance

Changes 0
Metric Value
dl 27
loc 27
c 0
b 0
f 0
rs 8.8571
cc 1
eloc 20
nc 1
nop 2
1
<?php
2
namespace Lyal\Checkr\Entities\Resources;
3
4
5
use Lyal\Checkr\Traits\Deleteable;
6
use Lyal\Checkr\Traits\Listable;
7
use Lyal\Checkr\Traits\Saveable;
8
9 View Code Duplication
class Employer 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...
10
{
11
    use Listable, Saveable, Deleteable;
12
13
    public function __construct($values = NULL, $client = NULL)
14
    {
15
        $this->setFields(
16
            [
17
                'id',
18
                'object',
19
                'uri',
20
                'candidate_id',
21
                'name',
22
                'position',
23
                'salary',
24
                'contract_type',
25
                'do_not_contact',
26
                'start_date',
27
                'end_date',
28
                'employer_url',
29
                'address',
30
                'manager'
31
            ]
32
        );
33
34
        $this->setSavePath('candidates/:candidate_id/employers');
35
        $this->setLoadPath('candidates/:candidate_id/employers/:id');
36
        $this->setListPath('candidates/:candidate_id/employers');
37
        $this->setDeletePath('candidates/:candidate_id/employers/:id');
38
39
        parent::__construct($values, $client);
40
41
42
    }
43
44
}