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

School::__construct()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 21

Duplication

Lines 26
Ratio 100 %

Importance

Changes 0
Metric Value
dl 26
loc 26
c 0
b 0
f 0
rs 8.8571
cc 1
eloc 21
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 View Code Duplication
class School 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, Creatable, Deleteable;
12
13
    public function __construct($values = NULL, $client = NULL)
14
    {
15
        $this->setFields([
16
            'id',
17
            'object',
18
            'uri',
19
            'name',
20
            'degree',
21
            'year_awarded',
22
            'major',
23
            'phone',
24
            'minor',
25
            'start_date',
26
            'end_date',
27
            'current',
28
            'school_url',
29
            'address',
30
            'candidate_id'
31
        ]);
32
33
        $this->setLoadPath('candidates/:candidate_id/schools/:id');
34
        $this->setCreatePath('candidates/:candidate_id/schools');
35
        $this->setListPath('candidates/:candidate_id/schools');
36
        $this->setDeletePath('candidates/:candidate_id/employers/:id');
37
38
        parent::__construct($values, $client);
39
40
41
    }
42
43
44
}