Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait HasJsonapi |
||
13 | { |
||
14 | /** |
||
15 | * The jsonapi object |
||
16 | * |
||
17 | * @var JsonapiFactory |
||
18 | */ |
||
19 | public $jsonapi; |
||
20 | |||
21 | /** |
||
22 | * Sets the jsonapi object. |
||
23 | * |
||
24 | * @param JsonapiFactory $jsonapi |
||
25 | * |
||
26 | * @return static |
||
27 | */ |
||
28 | public function setJsonapi($jsonapi) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Fill the "jsonapi" object with fake members and values. |
||
37 | * |
||
38 | * @param integer $countMeta The number of meta members to generate. |
||
39 | * |
||
40 | * @return static |
||
41 | */ |
||
42 | public function fakeJsonapi(int $countMeta = 5) |
||
47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.