Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | abstract class AbstractResource extends AbstractEntity |
||
10 | { |
||
11 | use Postable; |
||
12 | |||
13 | /** |
||
14 | * Resources to expand on requests to Checkr. |
||
15 | * |
||
16 | * See https://docs.checkr.com/#embedding |
||
17 | * |
||
18 | * @var |
||
19 | */ |
||
20 | private $embeddedResources; |
||
21 | |||
22 | /** |
||
23 | * AbstractResource constructor. |
||
24 | * |
||
25 | * @param null|string|array $values |
||
26 | * @param Client|null $client |
||
27 | */ |
||
28 | public function __construct($values, Client $client = null) |
||
29 | { |
||
30 | parent::__construct($values, $client); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Add items to resource. |
||
35 | * |
||
36 | * Can either be a single resource name, a csv list, or |
||
37 | * an array |
||
38 | * |
||
39 | * @param $embedResources |
||
40 | * |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function embed($embedResources) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function getEmbeddedResources() |
||
63 | } |
||
64 | } |
||
65 |