Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait HasGroupDescription |
||
6 | { |
||
7 | /** |
||
8 | * @deprecated Please use "fieldUsedForDescription" |
||
9 | */ |
||
10 | protected ?string $tagInfoFrom = null; |
||
11 | |||
12 | /** |
||
13 | * Display description for specific group in array of groups with same layout. |
||
14 | * |
||
15 | * @var string|null |
||
16 | */ |
||
17 | protected ?string $fieldUsedForDescription = null; |
||
18 | |||
19 | /** |
||
20 | * @param string|null $fieldUsedForDescription |
||
21 | * |
||
22 | * @return static |
||
23 | */ |
||
24 | 1 | public function useFieldForDescription(?string $fieldUsedForDescription = null): static |
|
29 | } |
||
30 | |||
31 | |||
32 | /** |
||
33 | * Returns field name what used for describe group. |
||
34 | * |
||
35 | * @return string|null |
||
36 | */ |
||
37 | 2 | public function fieldUsedForDescription(): ?string |
|
42 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.