Skip to content

Commit

Permalink
Merge pull request #226 from delyriand/feature/index-image-type
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran authored Nov 28, 2024
2 parents 6c9d334 + acf97e1 commit 9eb493c
Show file tree
Hide file tree
Showing 21 changed files with 1,408 additions and 653 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
->in(__DIR__)
->exclude(
[
'generated',
'tests/Application',
]
)
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"phpstan/phpstan-doctrine": "^1.3.2",
"phpstan/phpstan-webmozart-assert": "^1.1",
"phpunit/phpunit": "^10.5",
"phpmd/phpmd": "^2.15"
"phpmd/phpmd": "^2.15",
"jane-php/json-schema": "^7.8"
},
"prefer-stable": true,
"autoload": {
Expand Down
43 changes: 26 additions & 17 deletions generated/Model/ChannelDTO.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
<?php

/*
* This file is part of Monsieur Biz' Search plugin for Sylius.
*
* (c) Monsieur Biz <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace MonsieurBiz\SyliusSearchPlugin\Generated\Model;

class ChannelDTO
{
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property) : bool
{
return array_key_exists($property, $this->initialized);
}
/**
*
*
* @var string
*/
protected $code;

public function getCode(): string
/**
*
*
* @return string
*/
public function getCode() : string
{
return $this->code;
}

public function setCode(string $code): self
/**
*
*
* @param string $code
*
* @return self
*/
public function setCode(string $code) : self
{
$this->initialized['code'] = true;
$this->code = $code;

return $this;
}
}
}
73 changes: 55 additions & 18 deletions generated/Model/ImageDTO.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,71 @@
<?php

/*
* This file is part of Monsieur Biz' Search plugin for Sylius.
*
* (c) Monsieur Biz <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace MonsieurBiz\SyliusSearchPlugin\Generated\Model;

class ImageDTO
{
/**
* @var string|null
* @var array
*/
protected $initialized = [];
public function isInitialized($property) : bool
{
return array_key_exists($property, $this->initialized);
}
/**
*
*
* @var null|string
*/
protected $path;

public function getPath(): ?string
/**
*
*
* @var null|string
*/
protected $type;
/**
*
*
* @return null|string
*/
public function getPath() : ?string
{
return $this->path;
}

public function setPath(?string $path): self
/**
*
*
* @param null|string $path
*
* @return self
*/
public function setPath(?string $path) : self
{
$this->initialized['path'] = true;
$this->path = $path;

return $this;
}
}
/**
*
*
* @return null|string
*/
public function getType() : ?string
{
return $this->type;
}
/**
*
*
* @param null|string $type
*
* @return self
*/
public function setType(?string $type) : self
{
$this->initialized['type'] = true;
$this->type = $type;
return $this;
}
}
116 changes: 79 additions & 37 deletions generated/Model/PricingDTO.php
Original file line number Diff line number Diff line change
@@ -1,85 +1,127 @@
<?php

/*
* This file is part of Monsieur Biz' Search plugin for Sylius.
*
* (c) Monsieur Biz <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace MonsieurBiz\SyliusSearchPlugin\Generated\Model;

class PricingDTO
{
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property) : bool
{
return array_key_exists($property, $this->initialized);
}
/**
*
*
* @var string
*/
protected $channelCode;

/**
* @var int|null
*
*
* @var null|int
*/
protected $price;

/**
* @var int|null
*
*
* @var null|int
*/
protected $originalPrice;

/**
*
*
* @var bool
*/
protected $priceReduced;

public function getChannelCode(): string
/**
*
*
* @return string
*/
public function getChannelCode() : string
{
return $this->channelCode;
}

public function setChannelCode(string $channelCode): self
/**
*
*
* @param string $channelCode
*
* @return self
*/
public function setChannelCode(string $channelCode) : self
{
$this->initialized['channelCode'] = true;
$this->channelCode = $channelCode;

return $this;
}

public function getPrice(): ?int
/**
*
*
* @return null|int
*/
public function getPrice() : ?int
{
return $this->price;
}

public function setPrice(?int $price): self
/**
*
*
* @param null|int $price
*
* @return self
*/
public function setPrice(?int $price) : self
{
$this->initialized['price'] = true;
$this->price = $price;

return $this;
}

public function getOriginalPrice(): ?int
/**
*
*
* @return null|int
*/
public function getOriginalPrice() : ?int
{
return $this->originalPrice;
}

public function setOriginalPrice(?int $originalPrice): self
/**
*
*
* @param null|int $originalPrice
*
* @return self
*/
public function setOriginalPrice(?int $originalPrice) : self
{
$this->initialized['originalPrice'] = true;
$this->originalPrice = $originalPrice;

return $this;
}

public function getPriceReduced(): bool
/**
*
*
* @return bool
*/
public function getPriceReduced() : bool
{
return $this->priceReduced;
}

public function setPriceReduced(bool $priceReduced): self
/**
*
*
* @param bool $priceReduced
*
* @return self
*/
public function setPriceReduced(bool $priceReduced) : self
{
$this->initialized['priceReduced'] = true;
$this->priceReduced = $priceReduced;

return $this;
}
}
}
Loading

0 comments on commit 9eb493c

Please sign in to comment.