|
17 | 17 | */ |
18 | 18 | final class Collation |
19 | 19 | { |
20 | | - /** |
21 | | - * The collation name |
22 | | - */ |
23 | | - private string $name; |
24 | | - |
25 | 20 | /** |
26 | 21 | * A description of the collation |
27 | 22 | */ |
28 | 23 | private string $description; |
29 | 24 |
|
30 | 25 | /** |
31 | | - * The name of the character set with which the collation is associated |
32 | | - */ |
33 | | - private string $charset; |
34 | | - |
35 | | - /** |
36 | | - * The collation ID |
37 | | - */ |
38 | | - private int $id; |
39 | | - |
40 | | - /** |
41 | | - * Whether the collation is the default for its character set |
42 | | - */ |
43 | | - private bool $isDefault; |
44 | | - |
45 | | - /** |
46 | | - * Whether the character set is compiled into the server |
47 | | - */ |
48 | | - private bool $isCompiled; |
49 | | - |
50 | | - /** |
51 | | - * Used for determining the memory used to sort strings in this collation |
52 | | - */ |
53 | | - private int $sortLength; |
54 | | - |
55 | | - /** |
56 | | - * The collation pad attribute |
57 | | - */ |
58 | | - private string $padAttribute; |
59 | | - |
60 | | - /** |
61 | | - * @param string $name Collation name |
62 | | - * @param string $charset Related charset |
63 | | - * @param int $id Collation ID |
64 | | - * @param bool $isDefault Whether is the default |
65 | | - * @param bool $isCompiled Whether the charset is compiled |
66 | | - * @param int $sortLength Sort length |
67 | | - * @param string $padAttribute Pad attribute |
| 26 | + * @param string $name The collation name |
| 27 | + * @param string $charset The name of the character set with which the collation is associated |
| 28 | + * @param int $id The collation ID |
| 29 | + * @param bool $isDefault Whether the collation is the default for its character set |
| 30 | + * @param bool $isCompiled Whether the character set is compiled into the server |
| 31 | + * @param int $sortLength Used for determining the memory used to sort strings in this collation |
| 32 | + * @param string $padAttribute The collation pad attribute |
68 | 33 | */ |
69 | 34 | private function __construct( |
70 | | - string $name, |
71 | | - string $charset, |
72 | | - int $id, |
73 | | - bool $isDefault, |
74 | | - bool $isCompiled, |
75 | | - int $sortLength, |
76 | | - string $padAttribute, |
| 35 | + private string $name, |
| 36 | + private string $charset, |
| 37 | + private int $id, |
| 38 | + private bool $isDefault, |
| 39 | + private bool $isCompiled, |
| 40 | + private int $sortLength, |
| 41 | + private string $padAttribute, |
77 | 42 | ) { |
78 | | - $this->name = $name; |
79 | | - $this->charset = $charset; |
80 | | - $this->id = $id; |
81 | | - $this->isDefault = $isDefault; |
82 | | - $this->isCompiled = $isCompiled; |
83 | | - $this->sortLength = $sortLength; |
84 | | - $this->padAttribute = $padAttribute; |
85 | 43 | $this->description = $this->buildDescription(); |
86 | 44 | } |
87 | 45 |
|
|
0 commit comments