Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | trait HasResourceType |
||
11 | { |
||
12 | /** |
||
13 | * The "type" member |
||
14 | * |
||
15 | * @var string|null |
||
16 | */ |
||
17 | protected $resourceType; |
||
18 | |||
19 | /** |
||
20 | * Set the "type" member. |
||
21 | * |
||
22 | * @param string|null $type |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | 84 | public function setResourceType(?string $type) |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get the "type" member. |
||
35 | * |
||
36 | * @return string|null |
||
37 | */ |
||
38 | 18 | public function getResourceType(): ?string |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * Fill the "type" member with a fake value. |
||
45 | * |
||
46 | * @return static |
||
47 | */ |
||
48 | 42 | public function fakeResourceType() |
|
55 |