Employer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
eloc 7
c 3
b 1
f 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Lyal\Checkr\Entities\Resources;
4
5
use Lyal\Checkr\Client;
6
use Lyal\Checkr\Traits\Deleteable;
7
use Lyal\Checkr\Traits\Listable;
8
use Lyal\Checkr\Traits\Saveable;
9
10
class Employer extends AbstractResource
11
{
12
    use Listable, Saveable, 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\Employer: $useCollections, $data
Loading history...
13
14
    /**
15
     * Employer 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->setSavePath('candidates/:candidate_id/employers');
23
        $this->setLoadPath('candidates/:candidate_id/employers/:id');
24
        $this->setListPath('candidates/:candidate_id/employers');
25
        $this->setDeletePath('candidates/:candidate_id/employers/:id');
26
27
        parent::__construct($values, $client);
28
    }
29
}
30