Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
10 / 10 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
RequestRelation | |
100.00% |
10 / 10 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
getDefaults | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 | |||
getRequest | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getProvider | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSlotCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSource | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace BO\Zmsentities; |
4 | |
5 | class RequestRelation extends Schema\Entity |
6 | { |
7 | public static $schema = "requestrelation.json"; |
8 | |
9 | public function getDefaults() |
10 | { |
11 | return [ |
12 | 'provider' => new Provider(), |
13 | 'request' => new Request(), |
14 | 'source' => null, |
15 | 'slots' => '1', |
16 | ]; |
17 | } |
18 | |
19 | public function getRequest() |
20 | { |
21 | return $this->toProperty()->request->get(); |
22 | } |
23 | |
24 | public function getProvider() |
25 | { |
26 | return $this->toProperty()->provider->get(); |
27 | } |
28 | |
29 | public function getSlotCount() |
30 | { |
31 | return $this->toProperty()->slots->get(); |
32 | } |
33 | |
34 | public function getSource() |
35 | { |
36 | return $this->toProperty()->source->get(); |
37 | } |
38 | } |