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

School   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
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