@@ -58,7 +58,7 @@ class DateDimension implements EntityInterface
58
58
'DateDimension ' ,
59
59
'DateDimension.id ' ,
60
60
])]
61
- private UuidInterface $ id ;
61
+ private readonly UuidInterface $ id ;
62
62
63
63
#[ORM \Column(
64
64
name: 'year ' ,
@@ -71,7 +71,7 @@ class DateDimension implements EntityInterface
71
71
'DateDimension ' ,
72
72
'DateDimension.year ' ,
73
73
])]
74
- private int $ year ;
74
+ private readonly int $ year ;
75
75
76
76
#[ORM \Column(
77
77
name: 'month ' ,
@@ -84,7 +84,7 @@ class DateDimension implements EntityInterface
84
84
'DateDimension ' ,
85
85
'DateDimension.month ' ,
86
86
])]
87
- private int $ month ;
87
+ private readonly int $ month ;
88
88
89
89
#[ORM \Column(
90
90
name: 'day ' ,
@@ -97,7 +97,7 @@ class DateDimension implements EntityInterface
97
97
'DateDimension ' ,
98
98
'DateDimension.day ' ,
99
99
])]
100
- private int $ day ;
100
+ private readonly int $ day ;
101
101
102
102
#[ORM \Column(
103
103
name: 'quarter ' ,
@@ -110,7 +110,7 @@ class DateDimension implements EntityInterface
110
110
'DateDimension ' ,
111
111
'DateDimension.quarter ' ,
112
112
])]
113
- private int $ quarter ;
113
+ private readonly int $ quarter ;
114
114
115
115
#[ORM \Column(
116
116
name: 'week_number ' ,
@@ -123,7 +123,7 @@ class DateDimension implements EntityInterface
123
123
'DateDimension ' ,
124
124
'DateDimension.weekNumber ' ,
125
125
])]
126
- private int $ weekNumber ;
126
+ private readonly int $ weekNumber ;
127
127
128
128
#[ORM \Column(
129
129
name: 'day_number_of_week ' ,
@@ -136,7 +136,7 @@ class DateDimension implements EntityInterface
136
136
'DateDimension ' ,
137
137
'DateDimension.dayNumber ' ,
138
138
])]
139
- private int $ dayNumberOfWeek ;
139
+ private readonly int $ dayNumberOfWeek ;
140
140
141
141
#[ORM \Column(
142
142
name: 'day_number_of_year ' ,
@@ -149,7 +149,7 @@ class DateDimension implements EntityInterface
149
149
'DateDimension ' ,
150
150
'DateDimension.dayNumberOfYear ' ,
151
151
])]
152
- private int $ dayNumberOfYear ;
152
+ private readonly int $ dayNumberOfYear ;
153
153
154
154
#[ORM \Column(
155
155
name: 'leap_year ' ,
@@ -162,7 +162,7 @@ class DateDimension implements EntityInterface
162
162
'DateDimension ' ,
163
163
'DateDimension.leapYear ' ,
164
164
])]
165
- private bool $ leapYear ;
165
+ private readonly bool $ leapYear ;
166
166
167
167
#[ORM \Column(
168
168
name: 'week_numbering_year ' ,
@@ -175,7 +175,7 @@ class DateDimension implements EntityInterface
175
175
'DateDimension ' ,
176
176
'DateDimension.weekNumberingYear ' ,
177
177
])]
178
- private int $ weekNumberingYear ;
178
+ private readonly int $ weekNumberingYear ;
179
179
180
180
#[ORM \Column(
181
181
name: 'unix_time ' ,
@@ -188,7 +188,7 @@ class DateDimension implements EntityInterface
188
188
'DateDimension ' ,
189
189
'DateDimension.unixTime ' ,
190
190
])]
191
- private int $ unixTime ;
191
+ private readonly int $ unixTime ;
192
192
193
193
public function __construct (
194
194
#[ORM \Column(
@@ -199,7 +199,7 @@ public function __construct(
199
199
'DateDimension ' ,
200
200
'DateDimension.date ' ,
201
201
])]
202
- private DateTimeImmutable $ date
202
+ private readonly DateTimeImmutable $ date
203
203
) {
204
204
$ this ->id = $ this ->createUuid ();
205
205
0 commit comments