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