Skip to content

Commit 9eb493c

Browse files
authored
Merge pull request #226 from delyriand/feature/index-image-type
2 parents 6c9d334 + acf97e1 commit 9eb493c

21 files changed

+1408
-653
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
->in(__DIR__)
2525
->exclude(
2626
[
27+
'generated',
2728
'tests/Application',
2829
]
2930
)

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"phpstan/phpstan-doctrine": "^1.3.2",
2222
"phpstan/phpstan-webmozart-assert": "^1.1",
2323
"phpunit/phpunit": "^10.5",
24-
"phpmd/phpmd": "^2.15"
24+
"phpmd/phpmd": "^2.15",
25+
"jane-php/json-schema": "^7.8"
2526
},
2627
"prefer-stable": true,
2728
"autoload": {

generated/Model/ChannelDTO.php

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
11
<?php
22

3-
/*
4-
* This file is part of Monsieur Biz' Search plugin for Sylius.
5-
*
6-
* (c) Monsieur Biz <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE.txt
9-
* file that was distributed with this source code.
10-
*/
11-
12-
declare(strict_types=1);
13-
143
namespace MonsieurBiz\SyliusSearchPlugin\Generated\Model;
154

165
class ChannelDTO
176
{
187
/**
8+
* @var array
9+
*/
10+
protected $initialized = [];
11+
public function isInitialized($property) : bool
12+
{
13+
return array_key_exists($property, $this->initialized);
14+
}
15+
/**
16+
*
17+
*
1918
* @var string
2019
*/
2120
protected $code;
22-
23-
public function getCode(): string
21+
/**
22+
*
23+
*
24+
* @return string
25+
*/
26+
public function getCode() : string
2427
{
2528
return $this->code;
2629
}
27-
28-
public function setCode(string $code): self
30+
/**
31+
*
32+
*
33+
* @param string $code
34+
*
35+
* @return self
36+
*/
37+
public function setCode(string $code) : self
2938
{
39+
$this->initialized['code'] = true;
3040
$this->code = $code;
31-
3241
return $this;
3342
}
34-
}
43+
}

generated/Model/ImageDTO.php

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,71 @@
11
<?php
22

3-
/*
4-
* This file is part of Monsieur Biz' Search plugin for Sylius.
5-
*
6-
* (c) Monsieur Biz <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE.txt
9-
* file that was distributed with this source code.
10-
*/
11-
12-
declare(strict_types=1);
13-
143
namespace MonsieurBiz\SyliusSearchPlugin\Generated\Model;
154

165
class ImageDTO
176
{
187
/**
19-
* @var string|null
8+
* @var array
9+
*/
10+
protected $initialized = [];
11+
public function isInitialized($property) : bool
12+
{
13+
return array_key_exists($property, $this->initialized);
14+
}
15+
/**
16+
*
17+
*
18+
* @var null|string
2019
*/
2120
protected $path;
22-
23-
public function getPath(): ?string
21+
/**
22+
*
23+
*
24+
* @var null|string
25+
*/
26+
protected $type;
27+
/**
28+
*
29+
*
30+
* @return null|string
31+
*/
32+
public function getPath() : ?string
2433
{
2534
return $this->path;
2635
}
27-
28-
public function setPath(?string $path): self
36+
/**
37+
*
38+
*
39+
* @param null|string $path
40+
*
41+
* @return self
42+
*/
43+
public function setPath(?string $path) : self
2944
{
45+
$this->initialized['path'] = true;
3046
$this->path = $path;
31-
3247
return $this;
3348
}
34-
}
49+
/**
50+
*
51+
*
52+
* @return null|string
53+
*/
54+
public function getType() : ?string
55+
{
56+
return $this->type;
57+
}
58+
/**
59+
*
60+
*
61+
* @param null|string $type
62+
*
63+
* @return self
64+
*/
65+
public function setType(?string $type) : self
66+
{
67+
$this->initialized['type'] = true;
68+
$this->type = $type;
69+
return $this;
70+
}
71+
}

generated/Model/PricingDTO.php

Lines changed: 79 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,127 @@
11
<?php
22

3-
/*
4-
* This file is part of Monsieur Biz' Search plugin for Sylius.
5-
*
6-
* (c) Monsieur Biz <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE.txt
9-
* file that was distributed with this source code.
10-
*/
11-
12-
declare(strict_types=1);
13-
143
namespace MonsieurBiz\SyliusSearchPlugin\Generated\Model;
154

165
class PricingDTO
176
{
187
/**
8+
* @var array
9+
*/
10+
protected $initialized = [];
11+
public function isInitialized($property) : bool
12+
{
13+
return array_key_exists($property, $this->initialized);
14+
}
15+
/**
16+
*
17+
*
1918
* @var string
2019
*/
2120
protected $channelCode;
22-
2321
/**
24-
* @var int|null
22+
*
23+
*
24+
* @var null|int
2525
*/
2626
protected $price;
27-
2827
/**
29-
* @var int|null
28+
*
29+
*
30+
* @var null|int
3031
*/
3132
protected $originalPrice;
32-
3333
/**
34+
*
35+
*
3436
* @var bool
3537
*/
3638
protected $priceReduced;
37-
38-
public function getChannelCode(): string
39+
/**
40+
*
41+
*
42+
* @return string
43+
*/
44+
public function getChannelCode() : string
3945
{
4046
return $this->channelCode;
4147
}
42-
43-
public function setChannelCode(string $channelCode): self
48+
/**
49+
*
50+
*
51+
* @param string $channelCode
52+
*
53+
* @return self
54+
*/
55+
public function setChannelCode(string $channelCode) : self
4456
{
57+
$this->initialized['channelCode'] = true;
4558
$this->channelCode = $channelCode;
46-
4759
return $this;
4860
}
49-
50-
public function getPrice(): ?int
61+
/**
62+
*
63+
*
64+
* @return null|int
65+
*/
66+
public function getPrice() : ?int
5167
{
5268
return $this->price;
5369
}
54-
55-
public function setPrice(?int $price): self
70+
/**
71+
*
72+
*
73+
* @param null|int $price
74+
*
75+
* @return self
76+
*/
77+
public function setPrice(?int $price) : self
5678
{
79+
$this->initialized['price'] = true;
5780
$this->price = $price;
58-
5981
return $this;
6082
}
61-
62-
public function getOriginalPrice(): ?int
83+
/**
84+
*
85+
*
86+
* @return null|int
87+
*/
88+
public function getOriginalPrice() : ?int
6389
{
6490
return $this->originalPrice;
6591
}
66-
67-
public function setOriginalPrice(?int $originalPrice): self
92+
/**
93+
*
94+
*
95+
* @param null|int $originalPrice
96+
*
97+
* @return self
98+
*/
99+
public function setOriginalPrice(?int $originalPrice) : self
68100
{
101+
$this->initialized['originalPrice'] = true;
69102
$this->originalPrice = $originalPrice;
70-
71103
return $this;
72104
}
73-
74-
public function getPriceReduced(): bool
105+
/**
106+
*
107+
*
108+
* @return bool
109+
*/
110+
public function getPriceReduced() : bool
75111
{
76112
return $this->priceReduced;
77113
}
78-
79-
public function setPriceReduced(bool $priceReduced): self
114+
/**
115+
*
116+
*
117+
* @param bool $priceReduced
118+
*
119+
* @return self
120+
*/
121+
public function setPriceReduced(bool $priceReduced) : self
80122
{
123+
$this->initialized['priceReduced'] = true;
81124
$this->priceReduced = $priceReduced;
82-
83125
return $this;
84126
}
85-
}
127+
}

0 commit comments

Comments
 (0)