School::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
eloc 5
c 3
b 1
f 0
dl 0
loc 8
rs 10
cc 1
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;
0 ignored issues
show
introduced by
The trait Lyal\Checkr\Traits\Listable requires some properties which are not provided by Lyal\Checkr\Entities\Resources\School: $useCollections, $data
Loading history...
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->setLoadPath('candidates/:candidate_id/schools/:id');
23
        $this->setCreatePath('candidates/:candidate_id/schools');
24
        $this->setListPath('candidates/:candidate_id/schools');
25
        $this->setDeletePath('candidates/:candidate_id/employers/:id');
26
27
        parent::__construct($values, $client);
28
    }
29
}
30