Skip to content

Commit 0bac93e

Browse files
committed
Fix nullable types
1 parent 8c8f10a commit 0bac93e

File tree

1 file changed

+68
-68
lines changed

1 file changed

+68
-68
lines changed

src/Entity/Token.php

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -40,136 +40,136 @@
4040

4141
#[ORM\Column(type: 'string', length: 100, nullable: true)]
4242
#[OA\Property(type: 'string', maxLength: 100)]
43-
private ?string $fullName;
43+
private ?string $fullName = null;
4444

4545
#[ORM\Column(type: 'string', length: 50)]
4646
private string $shortName;
4747

4848
#[ORM\Column(type: 'float', nullable: true)]
49-
private ?float $tokenPrice;
49+
private ?float $tokenPrice = null;
5050

5151
#[ORM\Column(type: 'string', length: 50)]
5252
private string $canal;
5353

5454
#[ORM\Column(type: 'string', length: 3, nullable: true)]
55-
private ?string $currency;
55+
private ?string $currency = null;
5656

5757
#[ORM\Column(type: 'integer')]
5858
private int $totalTokens;
5959

6060
#[ORM\Column(type: 'string', length: 42, nullable: true)]
61-
private ?string $ethereumContract;
61+
private ?string $ethereumContract = null;
6262

6363
#[ORM\Column(type: 'string', length: 42, nullable: true)]
64-
private ?string $xDaiContract;
64+
private ?string $xDaiContract = null;
6565

6666
#[ORM\Column(type: 'string', length: 42, nullable: true)]
67-
private ?string $gnosisContract;
67+
private ?string $gnosisContract = null;
6868

6969
#[ORM\Column(type: 'string', length: 42, nullable: true)]
70-
private ?string $goerliContract;
70+
private ?string $goerliContract = null;
7171

7272
#[ORM\Column(type: 'float', nullable: true)]
73-
private ?float $totalInvestment;
73+
private ?float $totalInvestment = null;
7474

7575
#[ORM\Column(type: 'float', nullable: true)]
76-
private ?float $grossRentMonth;
76+
private ?float $grossRentMonth = null;
7777

7878
#[ORM\Column(type: 'float', nullable: true)]
79-
private ?float $annualPercentageYield;
79+
private ?float $annualPercentageYield = null;
8080

8181
#[ORM\Column(type: 'float', nullable: true)]
82-
private ?float $propertyManagementPercent;
82+
private ?float $propertyManagementPercent = null;
8383

8484
#[ORM\Column(type: 'float', nullable: true)]
85-
private ?float $realtPlatformPercent;
85+
private ?float $realtPlatformPercent = null;
8686

8787
#[ORM\Column(type: 'float', nullable: true)]
88-
private ?float $insurance;
88+
private ?float $insurance = null;
8989

9090
#[ORM\Column(type: 'float', nullable: true)]
91-
private ?float $propertyTaxes;
91+
private ?float $propertyTaxes = null;
9292

9393
#[ORM\Column(type: 'float', nullable: true)]
94-
private ?float $utilities;
94+
private ?float $utilities = null;
9595

9696
#[ORM\Column(type: 'float', nullable: true)]
97-
private ?float $initialMaintenanceReserve;
97+
private ?float $initialMaintenanceReserve = null;
9898

9999
#[ORM\Column(type: Types::JSON, nullable: true)]
100-
private ?array $coordinate;
100+
private ?array $coordinate = [];
101101

102102
#[ORM\Column(type: 'string', length: 255, nullable: true)]
103-
private ?string $marketplaceLink;
103+
private ?string $marketplaceLink = null;
104104

105105
#[ORM\Column(type: Types::JSON, nullable: true)]
106106
private ?array $imageLink = [];
107107

108108
#[ORM\Column(type: 'integer', nullable: true)]
109-
private ?int $propertyType;
109+
private ?int $propertyType = null;
110110

111111
#[ORM\Column(type: 'string', length: 50, nullable: true)]
112-
private ?string $propertyTypeName;
112+
private ?string $propertyTypeName = null;
113113

114114
#[ORM\Column(type: 'integer', nullable: true)]
115-
private ?int $squareFeet;
115+
private ?int $squareFeet = null;
116116

117117
#[ORM\Column(type: 'integer', nullable: true)]
118-
private ?int $lotSize;
118+
private ?int $lotSize = null;
119119

120120
#[ORM\Column(type: 'string', length: 100, nullable: true)]
121-
private ?string $bedroomBath;
121+
private ?string $bedroomBath = null;
122122

123123
#[ORM\Column(type: 'boolean', nullable: true)]
124-
private ?bool $hasTenants;
124+
private ?bool $hasTenants = null;
125125

126126
#[ORM\Column(type: 'string', length: 10, nullable: true)]
127-
private ?string $termOfLease;
127+
private ?string $termOfLease = null;
128128

129129
#[ORM\Column(type: 'datetime', nullable: true)]
130-
private ?\DateTime $renewalDate;
130+
private ?\DateTime $renewalDate = null;
131131

132132
#[ORM\Column(type: 'integer', nullable: true)]
133-
private ?int $section8paid;
133+
private ?int $section8paid = null;
134134

135135
#[ORM\Column(type: 'string', length: 50, nullable: true)]
136-
private ?string $sellPropertyTo;
136+
private ?string $sellPropertyTo = null;
137137

138138
#[ORM\Column(type: 'float', nullable: true)]
139-
private ?float $grossRentYear;
139+
private ?float $grossRentYear = null;
140140

141141
#[ORM\Column(type: 'float', nullable: true)]
142-
private ?float $propertyManagement;
142+
private ?float $propertyManagement = null;
143143

144144
#[ORM\Column(type: 'float', nullable: true)]
145-
private ?float $realtPlatform;
145+
private ?float $realtPlatform = null;
146146

147147
#[ORM\Column(type: 'float', nullable: true)]
148-
private ?float $netRentMonth;
148+
private ?float $netRentMonth = null;
149149

150150
#[ORM\Column(type: 'float', nullable: true)]
151-
private ?float $netRentYear;
151+
private ?float $netRentYear = null;
152152

153153
#[ORM\Column(type: 'float', nullable: true)]
154-
private ?float $netRentYearPerToken;
154+
private ?float $netRentYearPerToken = null;
155155

156156
#[ORM\Column(type: 'float', nullable: true)]
157-
private ?float $netRentMonthPerToken;
157+
private ?float $netRentMonthPerToken = null;
158158

159159
#[ORM\Column(type: 'datetime')]
160-
private ?DateTimeInterface $lastUpdate;
160+
private ?DateTimeInterface $lastUpdate = null;
161161

162162
#[ORM\Column(type: 'float', nullable: true)]
163-
private ?float $netRentDay;
163+
private ?float $netRentDay = null;
164164

165165
#[ORM\Column(type: 'float', nullable: true)]
166-
private ?float $netRentDayPerToken;
166+
private ?float $netRentDayPerToken = null;
167167

168168
#[ORM\Column(type: 'integer', nullable: true)]
169-
private ?int $rentedUnits;
169+
private ?int $rentedUnits = null;
170170

171171
#[ORM\Column(type: 'integer', nullable: true)]
172-
private ?int $totalUnits;
172+
private ?int $totalUnits = null;
173173

174174
#[ORM\Column(type: Types::JSON, nullable: true)]
175175
private ?array $secondaryMarketplace = [];
@@ -178,94 +178,94 @@
178178
private ?array $secondaryMarketplaces = [];
179179

180180
#[ORM\Column(type: 'string', length: 100, nullable: true)]
181-
private ?string $symbol;
181+
private ?string $symbol = null;
182182

183183
#[ORM\Column(type: Types::JSON, nullable: true)]
184184
private ?array $blockchainAddresses = [];
185185

186186
#[ORM\Column(type: 'float', nullable: true)]
187-
private ?float $underlyingAssetPrice;
187+
private ?float $underlyingAssetPrice = null;
188188

189189
#[ORM\Column(type: 'float', nullable: true)]
190-
private ?float $renovationReserve;
190+
private ?float $renovationReserve = null;
191191

192192
#[ORM\Column(type: 'float', nullable: true)]
193-
private ?float $propertyMaintenanceMonthly;
193+
private ?float $propertyMaintenanceMonthly = null;
194194

195195
#[ORM\Column(type: 'date', nullable: true)]
196-
private ?DateTimeInterface $rentStartDate;
196+
private ?DateTimeInterface $rentStartDate = null;
197197

198198
#[ORM\Column(type: Types::JSON, nullable: true)]
199199
private ?array $originSecondaryMarketplaces = [];
200200

201201
#[ORM\Column(type: 'date', nullable: true)]
202-
private ?DateTimeInterface $initialLaunchDate;
202+
private ?DateTimeInterface $initialLaunchDate = null;
203203

204204
#[ORM\Column(type: 'integer', nullable: true)]
205-
private ?int $seriesNumber;
205+
private ?int $seriesNumber = null;
206206

207207
#[ORM\Column(type: 'integer', nullable: true)]
208-
private ?int $constructionYear;
208+
private ?int $constructionYear = null;
209209

210210
#[ORM\Column(type: 'string', length: 50, nullable: true)]
211-
private ?string $constructionType;
211+
private ?string $constructionType = null;
212212

213213
#[ORM\Column(type: 'string', length: 100, nullable: true)]
214-
private ?string $roofType;
214+
private ?string $roofType = null;
215215

216216
#[ORM\Column(type: 'string', length: 100, nullable: true)]
217-
private ?string $assetParking;
217+
private ?string $assetParking = null;
218218

219219
#[ORM\Column(type: 'string', length: 100, nullable: true)]
220-
private ?string $foundation;
220+
private ?string $foundation = null;
221221

222222
#[ORM\Column(type: 'string', length: 100, nullable: true)]
223-
private ?string $heating;
223+
private ?string $heating = null;
224224

225225
#[ORM\Column(type: 'string', length: 100, nullable: true)]
226-
private ?string $cooling;
226+
private ?string $cooling = null;
227227

228228
#[ORM\Column(type: 'integer', nullable: true)]
229-
private ?int $tokenIdRules;
229+
private ?int $tokenIdRules = null;
230230

231231
#[ORM\Column(type: 'string', length: 20, nullable: true)]
232-
private ?string $rentCalculationType;
232+
private ?string $rentCalculationType = null;
233233

234234
#[ORM\Column(type: 'float', nullable: true)]
235-
private ?float $realtListingFeePercent;
235+
private ?float $realtListingFeePercent = null;
236236

237237
#[ORM\Column(type: 'float', nullable: true)]
238-
private ?float $realtListingFee;
238+
private ?float $realtListingFee = null;
239239

240240
#[ORM\Column(type: 'float', nullable: true)]
241-
private ?float $miscellaneousCosts;
241+
private ?float $miscellaneousCosts = null;
242242

243243
#[ORM\Column(type: 'integer', nullable: true)]
244-
private ?int $propertyStories;
244+
private ?int $propertyStories = null;
245245

246246
#[ORM\Column(type: 'string', length: 42, unique: true)]
247-
private ?string $uuid;
247+
private ?string $uuid = null;
248248

249249
#[ORM\Column(type: 'integer', nullable: true)]
250-
private ?int $totalTokensRegSummed;
250+
private ?int $totalTokensRegSummed = null;
251251

252252
#[ORM\Column(type: 'string', length: 50, nullable: true)]
253-
private ?string $rentalType;
253+
private ?string $rentalType = null;
254254

255255
#[ORM\Column(type: 'string', length: 100, nullable: true)]
256-
private ?string $subsidyStatus;
256+
private ?string $subsidyStatus = null;
257257

258258
#[ORM\Column(type: 'float', nullable: true)]
259-
private ?float $subsidyStatusValue;
259+
private ?float $subsidyStatusValue = null;
260260

261261
#[ORM\Column(type: 'string', length: 100, nullable: true)]
262-
private ?string $subsidyBy;
262+
private ?string $subsidyBy = null;
263263

264264
#[ORM\Column(type: 'string', length: 100, nullable: true)]
265-
private ?string $productType;
265+
private ?string $productType = null;
266266

267267
#[ORM\Column(type: 'string', length: 100, nullable: true)]
268-
private ?string $neighborhood;
268+
private ?string $neighborhood = null;
269269

270270
public function getId(): ?int
271271
{

0 commit comments

Comments
 (0)