Test Failed
Push — master ( e07ba9...3f1722 )
by Lyal
02:08
created

School::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 2
1
<?php
2
3
namespace Lyal\Checkr\Entities\Resources;
4
5
use Lyal\Checkr\Client;
6
use Lyal\Checkr\Traits\Creatable;
7
use Lyal\Checkr\Traits\Deleteable;
8
use Lyal\Checkr\Traits\Listable;
9
10
class School extends AbstractResource
11
{
12
    use Listable, Creatable, Deleteable;
13
14
    /**
15
     * School constructor.
16
     *
17
     * @param null|string|array $values
18
     * @param null|Client $client
19
     */
20
    public function __construct($values = null, Client $client = null)
21
    {
22
        $this->setFields([
23
            'id', 'object', 'uri', 'name', 'degree', 'year_awarded', 'major', 'phone', 'minor', 'start_date', 'end_date', 'current', 'school_url', 'address', 'candidate_id',
24
        ]);
25
26
        $this->setLoadPath('candidates/:candidate_id/schools/:id');
27
        $this->setCreatePath('candidates/:candidate_id/schools');
28
        $this->setListPath('candidates/:candidate_id/schools');
29
        $this->setDeletePath('candidates/:candidate_id/employers/:id');
30
31
        parent::__construct($values, $client);
32
    }
33
}
34