Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait HasIdentifier |
||
11 | { |
||
12 | /** |
||
13 | * "id" member" |
||
14 | * |
||
15 | * @var int|string|null |
||
16 | */ |
||
17 | protected $id; |
||
18 | |||
19 | /** |
||
20 | * Set the "id" member. |
||
21 | * |
||
22 | * @param int|string|null $resourceId |
||
23 | * @return static |
||
24 | */ |
||
25 | 105 | public function setId($resourceId) |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Get the "id" member. |
||
34 | * |
||
35 | * @return int|string|null |
||
36 | */ |
||
37 | 24 | public function getId() |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Fill the "id" member with a fake value. |
||
44 | * |
||
45 | * @return static |
||
46 | */ |
||
47 | 54 | public function fakeIdentifier() |
|
54 |