Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function init(): void |
||
19 | { |
||
20 | $this->setName('Summer sales'); |
||
21 | $this->setName('Zomersolden', 'nl'); |
||
22 | $this->setName('Soldes d\'été', 'fr'); |
||
23 | |||
24 | $startDate = new Carbon($this->getYear() . '-07-01'); |
||
25 | if ($startDate->dayOfWeekIso === 7) { |
||
26 | $startDate = $startDate->subDay(); |
||
27 | } |
||
28 | $this->setStartDate($startDate); |
||
29 | |||
30 | $endDate = new Carbon($this->getYear() . '-07-31'); |
||
31 | $this->setEndDate($endDate); |
||
32 | |||
33 | $this->setSalesRegulationsUrl( |
||
34 | 'https://economie.fgov.be/nl/themas/verkoop/vormen-van-verkoop/solden-koopjes' |
||
35 | ); |
||
38 |