diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 39f9b07..e52ad34 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,11 +10,7 @@ jobs:
fail-fast: false
matrix:
include:
- - operating-system: 'ubuntu-20.04'
- php-version: '7.4'
- - operating-system: 'ubuntu-20.04'
- php-version: '8.0'
- - operating-system: 'ubuntu-20.04'
+ - operating-system: 'ubuntu-latest'
php-version: '8.1'
name: PHP ${{ matrix.php-version }}
diff --git a/.gitignore b/.gitignore
index 833e93d..71ff435 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,4 @@
-.idea
-/bin/
-/build/
/vendor/
/composer.lock
/.php-cs-fixer.cache
-/.phpunit.result.cache
+/.phpunit.cache/
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
index b4f56ac..9958fe3 100644
--- a/.php-cs-fixer.dist.php
+++ b/.php-cs-fixer.dist.php
@@ -1,7 +1,11 @@
getFinder()
+$config
+ ->addMoreRules([
+ 'declare_strict_types' => true,
+ ])
+ ->getFinder()
->in(
[
__DIR__.'/src',
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..028e5c4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,99 @@
+Scraper Prestashop
+==================
+
+![Packagist version](https://flat.badgen.net/packagist/v/rem42/scraper-prestashop)
+![Packagist download](https://flat.badgen.net/packagist/dt/rem42/scraper-prestashop)
+![Packagist name](https://flat.badgen.net/packagist/name/rem42/scraper-prestashop)
+![Packagist php version](https://flat.badgen.net/packagist/php/rem42/scraper-prestashop)
+![Github licence](https://flat.badgen.net/github/license/rem42/scraper-prestashop)
+![Depenabot](https://flat.badgen.net/github/dependabot/rem42/scraper-prestashop)
+![Codeclimate lines of code](https://flat.badgen.net/codeclimate/loc/rem42/scraper-prestashop)
+![Codeclimate maintainability](https://flat.badgen.net/codeclimate/maintainability/rem42/scraper-prestashop)
+
+Scraper can handle multiple request type and transform them into object in order to create some API.
+
+Installation
+------------
+
+````bash
+composer require rem42/scraper-prestashop
+````
+
+Requirement
+-----------
+
+- PHP >= 8.1
+
+Usage
+-----
+
+Initiate the client with the http client of your choice that implement the `Symfony\Contracts\HttpClient\HttpClientInterface` interface.
+
+
+`````php
+addFilter('limit', 1)
+ ->addFilter('offset', 1)
+;
+
+/** @var PrestashopProducts $products */
+$products = $client->execute($request);
+
+$products->getProducts(); // Return an array of PrestashopProduct
+`````
+
+Product detail
+--------------
+
+`````php
+setId(42);
+
+/** @var PrestashopProduct $product */
+$product = $client->execute($request);
+
+$product->name; // Return the product name
+$product->dateAdd; // Return the product creation date
+`````
+
diff --git a/composer.json b/composer.json
index c04d969..4f1627c 100644
--- a/composer.json
+++ b/composer.json
@@ -8,42 +8,30 @@
"homepage": "https://remy.ovh"
}],
"require" : {
- "php": "^7.4|^8.0",
- "doctrine/collections": "^1.6",
- "symfony/serializer-pack": "^1.0",
- "rem42/scraper": "^2.0",
- "ext-json": "*"
+ "php": "^8.1",
+ "ext-json": "*",
+ "rem42/scraper": "^3.0",
+ "symfony/serializer-pack": "^1.1"
},
"require-dev": {
- "rem42/php-cs-fixer-config": "^3.1",
- "phpstan/phpstan": "^0.12",
- "phpunit/phpunit": "^9.5",
- "php-coveralls/php-coveralls": "^2.5"
+ "rem42/php-cs-fixer-config": "^3.4",
+ "phpstan/phpstan": "^1.8",
+ "phpunit/phpunit": "^9.5"
},
"autoload": {
- "psr-0": {
- "Scraper\\ScraperPrestashop\\": "src/"
- },
"psr-4": {
"Scraper\\ScraperPrestashop\\": "src/"
}
},
"autoload-dev": {
- "psr-0": {
- "Scraper\\ScraperPrestashop\\Tests\\": "tests/"
- },
"psr-4": {
"Scraper\\ScraperPrestashop\\Tests\\": "tests/"
}
},
- "config": {
- "bin-dir": "bin/"
- },
"scripts": {
- "static-analysis": "./bin/phpstan analyse src --level=max --no-progress -vvv",
- "code-style-check": "./bin/php-cs-fixer fix --dry-run --verbose",
- "code-style-fix": "./bin/php-cs-fixer fix",
- "unit-test": "./bin/phpunit"
- },
- "sort-packages": true
+ "static-analysis": "./vendor/bin/phpstan analyse src --level=max --no-progress -vvv",
+ "code-style-check": "./vendor/bin/php-cs-fixer fix --dry-run --verbose",
+ "code-style-fix": "./vendor/bin/php-cs-fixer fix --using-cache=no",
+ "unit-test": "./vendor/bin/phpunit"
+ }
}
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 0000000..48306e3
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ tests
+
+
+
+
+
+ src
+
+
+
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
deleted file mode 100644
index 7e67b80..0000000
--- a/phpunit.xml.dist
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- tests
-
-
-
-
-
- src
-
-
-
-
-
-
-
-
-
diff --git a/src/Api/PrestashopApi.php b/src/Api/PrestashopApi.php
index fa56461..f23811b 100644
--- a/src/Api/PrestashopApi.php
+++ b/src/Api/PrestashopApi.php
@@ -1,9 +1,18 @@
-serializer = SerializerFactory::create();
+ }
}
diff --git a/src/Api/PrestashopGetApi.php b/src/Api/PrestashopGetApi.php
index 3b35e46..3a130da 100644
--- a/src/Api/PrestashopGetApi.php
+++ b/src/Api/PrestashopGetApi.php
@@ -1,9 +1,8 @@
-|string
*/
- public function execute()
+ public function execute(): object|array|string
{
$content = $this->response->getContent();
@@ -29,19 +28,20 @@ public function execute()
if ($this->request->getId()) {
/** @var array $data */
- $data = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
+ $data = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
$content = json_encode($data[ResourceMapping::singularize($this->request)], \JSON_THROW_ON_ERROR);
}
- return SerializerFactory::create()
+ /* @phpstan-ignore-next-line */
+ return $this->serializer
->deserialize(
- $content,
- $className,
- 'json',
- [
- AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
- ]
- )
+ $content,
+ $className,
+ 'json',
+ [
+ AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
+ ]
+ )
;
}
}
diff --git a/src/Api/PrestashopPostApi.php b/src/Api/PrestashopPostApi.php
index a64a15c..4908fbe 100644
--- a/src/Api/PrestashopPostApi.php
+++ b/src/Api/PrestashopPostApi.php
@@ -1,16 +1,18 @@
-
+ */
+ public function execute(): object|array
{
$content = $this->response->getContent();
@@ -19,18 +21,20 @@ public function execute()
}
$className = ResourceMapping::find($this->request);
- $data = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
- $content = json_encode($data[ResourceMapping::singularize($this->request)], \JSON_THROW_ON_ERROR);
+ /** @var array $data */
+ $data = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
+ $content = json_encode($data[ResourceMapping::singularize($this->request)], \JSON_THROW_ON_ERROR);
- $serializer = SerializerFactory::create();
-
- return $serializer->deserialize(
- $content,
- $className,
- 'json',
- [
- AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
- ]
- );
+ /* @phpstan-ignore-next-line */
+ return $this->serializer
+ ->deserialize(
+ $content,
+ $className,
+ 'json',
+ [
+ AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
+ ]
+ )
+ ;
}
}
diff --git a/src/Api/PrestashopPutApi.php b/src/Api/PrestashopPutApi.php
index ebda03c..288c6f5 100644
--- a/src/Api/PrestashopPutApi.php
+++ b/src/Api/PrestashopPutApi.php
@@ -1,16 +1,18 @@
-
+ */
+ public function execute(): object|array
{
$content = $this->response->getContent();
@@ -19,18 +21,20 @@ public function execute()
}
$className = ResourceMapping::find($this->request);
- $data = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
- $content = json_encode($data[ResourceMapping::singularize($this->request)], \JSON_THROW_ON_ERROR);
+ /** @var array $data */
+ $data = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
+ $content = json_encode($data[ResourceMapping::singularize($this->request)], \JSON_THROW_ON_ERROR);
- $serializer = SerializerFactory::create();
-
- return $serializer->deserialize(
- $content,
- $className,
- 'json',
- [
- AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
- ]
- );
+ /* @phpstan-ignore-next-line */
+ return $this->serializer
+ ->deserialize(
+ $content,
+ $className,
+ 'json',
+ [
+ AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
+ ]
+ )
+ ;
}
}
diff --git a/src/Entity/PrestashopAddress.php b/src/Entity/PrestashopAddress.php
index c88c7a6..649aa82 100644
--- a/src/Entity/PrestashopAddress.php
+++ b/src/Entity/PrestashopAddress.php
@@ -1,328 +1,168 @@
-id;
- }
+ public ?int $id = null;
+ public ?int $idCustomer = null;
+ public ?int $idManufacturer = null;
+ public ?int $idSupplier = null;
+ public ?int $idWarehouse = null;
+ public ?int $idCountry = null;
+ public ?int $idState = null;
+ public ?string $alias = null;
+ public ?string $company = null;
+ public ?string $lastname = null;
+ public ?string $firstname = null;
+ public ?string $vatNumber = null;
+ public ?string $address1 = null;
+ public ?string $address2 = null;
+ public ?string $postcode = null;
+ public ?string $city = null;
+ public ?string $other = null;
+ public ?string $phone = null;
+ public ?string $phoneMobile = null;
+ public ?string $dni = null;
+ public ?bool $deleted = null;
+ public ?\DateTimeInterface $dateAdd = null;
+ public ?\DateTimeInterface $dateUpd = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdCustomer(): ?int
- {
- return $this->idCustomer;
- }
-
public function setIdCustomer(?int $idCustomer): self
{
$this->idCustomer = $idCustomer;
-
return $this;
}
- public function getIdManufacturer(): ?int
- {
- return $this->idManufacturer;
- }
-
public function setIdManufacturer(?int $idManufacturer): self
{
$this->idManufacturer = $idManufacturer;
-
return $this;
}
- public function getIdSupplier(): ?int
- {
- return $this->idSupplier;
- }
-
public function setIdSupplier(?int $idSupplier): self
{
$this->idSupplier = $idSupplier;
-
return $this;
}
- public function getIdWarehouse(): ?int
- {
- return $this->idWarehouse;
- }
-
public function setIdWarehouse(?int $idWarehouse): self
{
$this->idWarehouse = $idWarehouse;
-
return $this;
}
- public function getIdCountry(): ?int
- {
- return $this->idCountry;
- }
-
public function setIdCountry(?int $idCountry): self
{
$this->idCountry = $idCountry;
-
return $this;
}
- public function getIdState(): ?int
- {
- return $this->idState;
- }
-
public function setIdState(?int $idState): self
{
$this->idState = $idState;
-
return $this;
}
- public function getAlias(): ?string
- {
- return $this->alias;
- }
-
public function setAlias(?string $alias): self
{
$this->alias = $alias;
-
return $this;
}
- public function getCompany(): ?string
- {
- return $this->company;
- }
-
public function setCompany(?string $company): self
{
$this->company = $company;
-
return $this;
}
- public function getLastname(): ?string
- {
- return $this->lastname;
- }
-
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
-
return $this;
}
- public function getFirstname(): ?string
- {
- return $this->firstname;
- }
-
public function setFirstname(?string $firstname): self
{
$this->firstname = $firstname;
-
return $this;
}
- public function getVatNumber(): ?string
- {
- return $this->vatNumber;
- }
-
public function setVatNumber(?string $vatNumber): self
{
$this->vatNumber = $vatNumber;
-
return $this;
}
- public function getAddress1(): ?string
- {
- return $this->address1;
- }
-
public function setAddress1(?string $address1): self
{
$this->address1 = $address1;
-
return $this;
}
- public function getAddress2(): ?string
- {
- return $this->address2;
- }
-
public function setAddress2(?string $address2): self
{
$this->address2 = $address2;
-
return $this;
}
- public function getPostcode(): ?string
- {
- return $this->postcode;
- }
-
public function setPostcode(?string $postcode): self
{
$this->postcode = $postcode;
-
return $this;
}
- public function getCity(): ?string
- {
- return $this->city;
- }
-
public function setCity(?string $city): self
{
$this->city = $city;
-
return $this;
}
- public function getOther(): ?string
- {
- return $this->other;
- }
-
public function setOther(?string $other): self
{
$this->other = $other;
-
return $this;
}
- public function getPhone(): ?string
- {
- return $this->phone;
- }
-
public function setPhone(?string $phone): self
{
$this->phone = $phone;
-
return $this;
}
- public function getPhoneMobile(): ?string
- {
- return $this->phoneMobile;
- }
-
public function setPhoneMobile(?string $phoneMobile): self
{
$this->phoneMobile = $phoneMobile;
-
return $this;
}
- public function getDni(): ?string
- {
- return $this->dni;
- }
-
public function setDni(?string $dni): self
{
$this->dni = $dni;
-
return $this;
}
- public function getDeleted(): ?bool
- {
- return $this->deleted;
- }
-
public function setDeleted(?bool $deleted): self
{
$this->deleted = $deleted;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
- public function getDateUpd(): ?\DateTimeInterface
- {
- return $this->dateUpd;
- }
-
public function setDateUpd(?\DateTimeInterface $dateUpd): self
{
$this->dateUpd = $dateUpd;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopAddresses.php b/src/Entity/PrestashopAddresses.php
index 87760ab..b7ec98f 100644
--- a/src/Entity/PrestashopAddresses.php
+++ b/src/Entity/PrestashopAddresses.php
@@ -1,41 +1,15 @@
- */
- private Collection $addresses;
-
- /**
- * PrestashopAddresses constructor.
- */
- public function __construct()
- {
- $this->addresses = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getAddresses(): Collection
- {
- return $this->addresses;
- }
+ /** @var array */
+ public array $addresses = [];
public function addAddress(PrestashopAddress $address): self
{
- $this->addresses->add($address);
-
- return $this;
- }
-
- public function removeAddress(PrestashopAddress $address): self
- {
- $this->addresses->removeElement($address);
+ $this->addresses[] = $address;
return $this;
}
diff --git a/src/Entity/PrestashopAssociations.php b/src/Entity/PrestashopAssociations.php
index 63c7837..dc53f80 100644
--- a/src/Entity/PrestashopAssociations.php
+++ b/src/Entity/PrestashopAssociations.php
@@ -1,272 +1,105 @@
- */
- private Collection $cartRows;
-
- /** @var Collection */
- private Collection $orderRows;
-
- /** @var Collection */
- private Collection $groups;
-
- /** @var Collection */
- private Collection $categories;
-
- /** @var Collection */
- private Collection $images;
-
- /** @var Collection */
- private Collection $productFeatures;
+ /** @var array */
+ public array $cartRows = [];
- /** @var Collection */
- private Collection $stockAvailables;
+ /** @var array */
+ public array $orderRows = [];
- /** @var Collection */
- private Collection $combinations;
-
- /** @var Collection */
- private Collection $productOptionValues;
-
- /** @var Collection */
- private Collection $productBundle;
-
- public function __construct()
- {
- $this->cartRows = new ArrayCollection();
- $this->orderRows = new ArrayCollection();
- $this->groups = new ArrayCollection();
- $this->categories = new ArrayCollection();
- $this->images = new ArrayCollection();
- $this->productFeatures = new ArrayCollection();
- $this->stockAvailables = new ArrayCollection();
- $this->combinations = new ArrayCollection();
- $this->productOptionValues = new ArrayCollection();
- $this->productBundle = new ArrayCollection();
- }
+ /** @var array */
+ public array $groups = [];
- /**
- * @return Collection
- */
- public function getCartRows(): Collection
- {
- return $this->cartRows;
- }
-
- /**
- * @return Collection
- */
- public function getOrderRows(): Collection
- {
- return $this->orderRows;
- }
-
- /**
- * @return Collection
- */
- public function getGroups(): Collection
- {
- return $this->groups;
- }
-
- /**
- * @return Collection
- */
- public function getCategories(): Collection
- {
- return $this->categories;
- }
+ /** @var array */
+ public array $categories = [];
- /**
- * @return Collection
- */
- public function getImages(): Collection
- {
- return $this->images;
- }
+ /** @var array */
+ public array $images = [];
- /**
- * @return Collection
- */
- public function getProductFeatures(): Collection
- {
- return $this->productFeatures;
- }
+ /** @var array */
+ public array $productFeatures = [];
- /**
- * @return Collection
- */
- public function getStockAvailables(): Collection
- {
- return $this->stockAvailables;
- }
+ /** @var array */
+ public array $stockAvailables = [];
- /**
- * @return Collection
- */
- public function getCombinations(): Collection
- {
- return $this->combinations;
- }
+ /** @var array */
+ public array $combinations = [];
- /**
- * @return Collection
- */
- public function getProductOptionValues(): Collection
- {
- return $this->productOptionValues;
- }
+ /** @var array */
+ public array $productOptionValues = [];
- /**
- * @return Collection
- */
- public function getProductBundle(): Collection
- {
- return $this->productBundle;
- }
+ /** @var array */
+ public array $productBundle = [];
public function addCartRow(PrestashopCartRow $cartRow): self
{
- $this->cartRows->add($cartRow);
-
- return $this;
- }
-
- public function removeCartRow(PrestashopCartRow $cartRow): self
- {
- $this->cartRows->removeElement($cartRow);
+ $this->cartRows[] = $cartRow;
return $this;
}
public function addOrderRow(PrestashopOrderRow $orderRow): self
{
- $this->orderRows->add($orderRow);
-
- return $this;
- }
-
- public function removeOrderRow(PrestashopOrderRow $orderRow): self
- {
- $this->orderRows->removeElement($orderRow);
+ $this->orderRows[] = $orderRow;
return $this;
}
public function addGroup(PrestashopGroup $group): self
{
- $this->groups->add($group);
-
- return $this;
- }
-
- public function removeGroup(PrestashopGroup $group): self
- {
- $this->groups->removeElement($group);
+ $this->groups[] = $group;
return $this;
}
public function addCategory(PrestashopCategory $category): self
{
- $this->categories->add($category);
-
- return $this;
- }
-
- public function removeCategory(PrestashopCategory $category): self
- {
- $this->categories->removeElement($category);
+ $this->categories[] = $category;
return $this;
}
public function addImage(PrestashopImage $image): self
{
- $this->images->add($image);
-
- return $this;
- }
-
- public function removeImage(PrestashopImage $image): self
- {
- $this->images->removeElement($image);
+ $this->images[] = $image;
return $this;
}
public function addProductFeature(PrestashopProductFeature $productFeature): self
{
- $this->productFeatures->add($productFeature);
-
- return $this;
- }
-
- public function removeProductFeature(PrestashopProductFeature $productFeature): self
- {
- $this->productFeatures->removeElement($productFeature);
+ $this->productFeatures[] = $productFeature;
return $this;
}
public function addStockAvailable(PrestashopStockAvailable $stockAvailable): self
{
- $this->stockAvailables->add($stockAvailable);
-
- return $this;
- }
-
- public function removeStockAvailable(PrestashopStockAvailable $stockAvailable): self
- {
- $this->stockAvailables->removeElement($stockAvailable);
+ $this->stockAvailables[] = $stockAvailable;
return $this;
}
public function addCombination(PrestashopCombination $combination): self
{
- $this->combinations->add($combination);
-
- return $this;
- }
-
- public function removeCombination(PrestashopCombination $combination): self
- {
- $this->combinations->removeElement($combination);
+ $this->combinations[] = $combination;
return $this;
}
public function addProductOptionValue(PrestashopProductOptionValue $productOptionValue): self
{
- $this->productOptionValues->add($productOptionValue);
-
- return $this;
- }
-
- public function removeProductOptionValue(PrestashopProductOptionValue $productOptionValue): self
- {
- $this->productOptionValues->removeElement($productOptionValue);
+ $this->productOptionValues[] = $productOptionValue;
return $this;
}
public function addProductBundle(PrestashopProductBundle $productBundle): self
{
- $this->productBundle->add($productBundle);
-
- return $this;
- }
-
- public function removeProductBundle(PrestashopProductBundle $productBundle): self
- {
- $this->productBundle->removeElement($productBundle);
+ $this->productBundle[] = $productBundle;
return $this;
}
diff --git a/src/Entity/PrestashopCarrier.php b/src/Entity/PrestashopCarrier.php
index 86baed4..8fc8e24 100644
--- a/src/Entity/PrestashopCarrier.php
+++ b/src/Entity/PrestashopCarrier.php
@@ -1,332 +1,162 @@
- */
- private Collection $delay;
-
- public function __construct()
- {
- $this->delay = new ArrayCollection();
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
+ public ?int $id = null;
+ public ?bool $deleted = null;
+ public ?bool $isModule = null;
+ public ?int $idTaxRulesGroup = null;
+ public ?int $idReference = null;
+ public ?string $name = null;
+ public ?bool $active = null;
+ public ?bool $isFree = null;
+ public ?string $url = null;
+ public ?int $shippingHandling = null;
+ public ?int $shippingExternal = null;
+ public ?int $rangeBehavior = null;
+ public ?int $shippingMethod = null;
+ public ?int $maxWidth = null;
+ public ?int $maxHeight = null;
+ public ?int $maxDepth = null;
+ public ?float $maxWeight = null;
+ public ?int $grade = null;
+ public ?string $externalModuleName = null;
+ public ?int $needRange = null;
+ public ?int $position = null;
+ /** @var array */
+ public array $delay = [];
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function isDeleted(): ?bool
- {
- return $this->deleted;
- }
-
public function setDeleted(?bool $deleted): self
{
$this->deleted = $deleted;
-
return $this;
}
- public function getIsModule(): ?bool
- {
- return $this->isModule;
- }
-
public function setIsModule(?bool $isModule): self
{
$this->isModule = $isModule;
-
return $this;
}
- public function getIdTaxRulesGroup(): ?int
- {
- return $this->idTaxRulesGroup;
- }
-
public function setIdTaxRulesGroup(?int $idTaxRulesGroup): self
{
$this->idTaxRulesGroup = $idTaxRulesGroup;
-
return $this;
}
- public function getIdReference(): ?int
- {
- return $this->idReference;
- }
-
public function setIdReference(?int $idReference): self
{
$this->idReference = $idReference;
-
return $this;
}
- public function getName(): ?string
- {
- return $this->name;
- }
-
public function setName(?string $name): self
{
$this->name = $name;
-
return $this;
}
- public function isActive(): ?bool
- {
- return $this->active;
- }
-
public function setActive(?bool $active): self
{
$this->active = $active;
-
return $this;
}
- public function getIsFree(): ?bool
- {
- return $this->isFree;
- }
-
public function setIsFree(?bool $isFree): self
{
$this->isFree = $isFree;
-
return $this;
}
- public function getUrl(): ?string
- {
- return $this->url;
- }
-
public function setUrl(?string $url): self
{
$this->url = $url;
-
return $this;
}
- public function getShippingHandling(): ?int
- {
- return $this->shippingHandling;
- }
-
public function setShippingHandling(?int $shippingHandling): self
{
$this->shippingHandling = $shippingHandling;
-
return $this;
}
- public function getShippingExternal(): ?int
- {
- return $this->shippingExternal;
- }
-
public function setShippingExternal(?int $shippingExternal): self
{
$this->shippingExternal = $shippingExternal;
-
return $this;
}
- public function getRangeBehavior(): ?int
- {
- return $this->rangeBehavior;
- }
-
public function setRangeBehavior(?int $rangeBehavior): self
{
$this->rangeBehavior = $rangeBehavior;
-
return $this;
}
- public function getShippingMethod(): ?int
- {
- return $this->shippingMethod;
- }
-
public function setShippingMethod(?int $shippingMethod): self
{
$this->shippingMethod = $shippingMethod;
-
return $this;
}
- public function getMaxWidth(): ?int
- {
- return $this->maxWidth;
- }
-
public function setMaxWidth(?int $maxWidth): self
{
$this->maxWidth = $maxWidth;
-
return $this;
}
- public function getMaxHeight(): ?int
- {
- return $this->maxHeight;
- }
-
public function setMaxHeight(?int $maxHeight): self
{
$this->maxHeight = $maxHeight;
-
return $this;
}
- public function getMaxDepth(): ?int
- {
- return $this->maxDepth;
- }
-
public function setMaxDepth(?int $maxDepth): self
{
$this->maxDepth = $maxDepth;
-
return $this;
}
- public function getMaxWeight(): ?float
- {
- return $this->maxWeight;
- }
-
public function setMaxWeight(?float $maxWeight): self
{
$this->maxWeight = $maxWeight;
-
return $this;
}
- public function getGrade(): ?int
- {
- return $this->grade;
- }
-
public function setGrade(?int $grade): self
{
$this->grade = $grade;
-
return $this;
}
- public function getExternalModuleName(): ?string
- {
- return $this->externalModuleName;
- }
-
public function setExternalModuleName(?string $externalModuleName): self
{
$this->externalModuleName = $externalModuleName;
-
return $this;
}
- public function getNeedRange(): ?int
- {
- return $this->needRange;
- }
-
public function setNeedRange(?int $needRange): self
{
$this->needRange = $needRange;
-
return $this;
}
- public function getPosition(): ?int
- {
- return $this->position;
- }
-
public function setPosition(?int $position): self
{
$this->position = $position;
-
return $this;
}
- /**
- * @return Collection
- */
- public function getDelay(): Collection
- {
- return $this->delay;
- }
-
public function addDelay(PrestashopItem $prestashopItem): self
{
- $this->delay->add($prestashopItem);
-
- return $this;
- }
-
- public function removeDelay(PrestashopItem $prestashopItem): self
- {
- $this->delay->removeElement($prestashopItem);
+ $this->delay[] = $prestashopItem;
return $this;
}
diff --git a/src/Entity/PrestashopCarriers.php b/src/Entity/PrestashopCarriers.php
index 8394504..5db5619 100644
--- a/src/Entity/PrestashopCarriers.php
+++ b/src/Entity/PrestashopCarriers.php
@@ -1,38 +1,15 @@
- */
- private Collection $carriers;
-
- public function __construct()
- {
- $this->carriers = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCarriers(): Collection
- {
- return $this->carriers;
- }
+ /** @var array */
+ public array $carriers = [];
public function addCarrier(PrestashopCarrier $carrier): self
{
- $this->carriers->add($carrier);
-
- return $this;
- }
-
- public function removeCarrier(PrestashopCarrier $carrier): self
- {
- $this->carriers->removeElement($carrier);
+ $this->carriers[] = $carrier;
return $this;
}
diff --git a/src/Entity/PrestashopCart.php b/src/Entity/PrestashopCart.php
index e1a60e1..e828c4a 100644
--- a/src/Entity/PrestashopCart.php
+++ b/src/Entity/PrestashopCart.php
@@ -1,272 +1,140 @@
-id;
- }
+ public ?int $id = null;
+ public ?int $idAddressDelivery = null;
+ public ?int $idAddressInvoice = null;
+ public ?int $idCurrency = null;
+ public ?int $idCustomer = null;
+ public ?int $idGuest = null;
+ public ?int $idLang = null;
+ public ?int $idShopGroup = null;
+ public ?int $idShop = null;
+ public ?int $idCarrier = null;
+ public ?bool $recyclable = null;
+ public ?bool $gift = null;
+ public ?string $giftMessage = null;
+ public ?bool $mobileTheme = null;
+ public ?string $secureKey = null;
+ public ?bool $allowSeperatedPackage = null;
+ public ?\DateTime $dateAdd = null;
+ public ?\DateTime $dateUpd = null;
+ public ?PrestashopAssociations $associations = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdAddressDelivery(): ?int
- {
- return $this->idAddressDelivery;
- }
-
public function setIdAddressDelivery(?int $idAddressDelivery): self
{
$this->idAddressDelivery = $idAddressDelivery;
-
return $this;
}
- public function getIdAddressInvoice(): ?int
- {
- return $this->idAddressInvoice;
- }
-
public function setIdAddressInvoice(?int $idAddressInvoice): self
{
$this->idAddressInvoice = $idAddressInvoice;
-
return $this;
}
- public function getIdCurrency(): ?int
- {
- return $this->idCurrency;
- }
-
public function setIdCurrency(?int $idCurrency): self
{
$this->idCurrency = $idCurrency;
-
return $this;
}
- public function getIdCustomer(): ?int
- {
- return $this->idCustomer;
- }
-
public function setIdCustomer(?int $idCustomer): self
{
$this->idCustomer = $idCustomer;
-
return $this;
}
- public function getIdGuest(): ?int
- {
- return $this->idGuest;
- }
-
public function setIdGuest(?int $idGuest): self
{
$this->idGuest = $idGuest;
-
return $this;
}
- public function getIdLang(): ?int
- {
- return $this->idLang;
- }
-
public function setIdLang(?int $idLang): self
{
$this->idLang = $idLang;
-
return $this;
}
- public function getIdShopGroup(): ?int
- {
- return $this->idShopGroup;
- }
-
public function setIdShopGroup(?int $idShopGroup): self
{
$this->idShopGroup = $idShopGroup;
-
return $this;
}
- public function getIdShop(): ?int
- {
- return $this->idShop;
- }
-
public function setIdShop(?int $idShop): self
{
$this->idShop = $idShop;
-
return $this;
}
- public function getIdCarrier(): ?int
- {
- return $this->idCarrier;
- }
-
public function setIdCarrier(?int $idCarrier): self
{
$this->idCarrier = $idCarrier;
-
return $this;
}
- public function getRecyclable(): ?bool
- {
- return $this->recyclable;
- }
-
public function setRecyclable(?bool $recyclable): self
{
$this->recyclable = $recyclable;
-
return $this;
}
- public function getGift(): ?bool
- {
- return $this->gift;
- }
-
public function setGift(?bool $gift): self
{
$this->gift = $gift;
-
return $this;
}
- public function getGiftMessage(): ?string
- {
- return $this->giftMessage;
- }
-
public function setGiftMessage(?string $giftMessage): self
{
$this->giftMessage = $giftMessage;
-
return $this;
}
- public function getMobileTheme(): ?bool
- {
- return $this->mobileTheme;
- }
-
public function setMobileTheme(?bool $mobileTheme): self
{
$this->mobileTheme = $mobileTheme;
-
return $this;
}
- public function getSecureKey(): ?string
- {
- return $this->secureKey;
- }
-
public function setSecureKey(?string $secureKey): self
{
$this->secureKey = $secureKey;
-
return $this;
}
- public function getAllowSeperatedPackage(): ?bool
- {
- return $this->allowSeperatedPackage;
- }
-
public function setAllowSeperatedPackage(?bool $allowSeperatedPackage): self
{
$this->allowSeperatedPackage = $allowSeperatedPackage;
-
return $this;
}
- public function getDateAdd(): ?\DateTime
- {
- return $this->dateAdd;
- }
-
public function setDateAdd(?\DateTime $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
- public function getDateUpd(): ?\DateTime
- {
- return $this->dateUpd;
- }
-
public function setDateUpd(?\DateTime $dateUpd): self
{
$this->dateUpd = $dateUpd;
-
return $this;
}
- public function getAssociations(): ?PrestashopAssociations
- {
- return $this->associations;
- }
-
public function setAssociations(?PrestashopAssociations $associations): self
{
$this->associations = $associations;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopCartRow.php b/src/Entity/PrestashopCartRow.php
index c225347..62d99f5 100644
--- a/src/Entity/PrestashopCartRow.php
+++ b/src/Entity/PrestashopCartRow.php
@@ -1,74 +1,35 @@
-idProduct;
- }
-
- /**
- * @return PrestashopCartRow
- */
public function setIdProduct(?int $idProduct): self
{
$this->idProduct = $idProduct;
-
return $this;
}
- public function getIdProductAttribute(): ?int
- {
- return $this->idProductAttribute;
- }
-
- /**
- * @return PrestashopCartRow
- */
public function setIdProductAttribute(?int $idProductAttribute): self
{
$this->idProductAttribute = $idProductAttribute;
-
return $this;
}
- public function getIdAddressDelivery(): ?int
- {
- return $this->idAddressDelivery;
- }
-
- /**
- * @return PrestashopCartRow
- */
public function setIdAddressDelivery(?int $idAddressDelivery): self
{
$this->idAddressDelivery = $idAddressDelivery;
-
return $this;
}
- public function getQuantity(): ?int
- {
- return $this->quantity;
- }
-
- /**
- * @return PrestashopCartRow
- */
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopCartRule.php b/src/Entity/PrestashopCartRule.php
index 2fe8554..d9f131c 100644
--- a/src/Entity/PrestashopCartRule.php
+++ b/src/Entity/PrestashopCartRule.php
@@ -1,4 +1,4 @@
- */
- private Collection $cartRules;
-
- public function __construct()
- {
- $this->cartRules = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCartRules(): Collection
- {
- return $this->cartRules;
- }
+ /** @var array */
+ public array $cartRules = [];
public function addCartRule(PrestashopCartRule $cartRule): self
{
- $this->cartRules->add($cartRule);
-
- return $this;
- }
-
- public function removeCartRule(PrestashopCartRule $cartRule): self
- {
- $this->cartRules->removeElement($cartRule);
+ $this->cartRules[] = $cartRule;
return $this;
}
diff --git a/src/Entity/PrestashopCarts.php b/src/Entity/PrestashopCarts.php
index 3d7c98f..c324ac8 100644
--- a/src/Entity/PrestashopCarts.php
+++ b/src/Entity/PrestashopCarts.php
@@ -1,36 +1,15 @@
- */
- private Collection $carts;
-
- /**
- * @return Collection
- */
- public function getCarts(): Collection
- {
- return $this->carts;
- }
-
- /**
- * @param array $carts
- */
- public function setCarts(array $carts): self
- {
- $this->carts = new ArrayCollection($carts);
-
- return $this;
- }
+ /** @var array */
+ public array $carts = [];
public function addCart(PrestashopCart $cart): self
{
- $this->carts->add($cart);
+ $this->carts[] = $cart;
return $this;
}
diff --git a/src/Entity/PrestashopCategories.php b/src/Entity/PrestashopCategories.php
index 6172000..5359542 100644
--- a/src/Entity/PrestashopCategories.php
+++ b/src/Entity/PrestashopCategories.php
@@ -1,38 +1,15 @@
- */
- private Collection $categories;
-
- public function __construct()
- {
- $this->categories = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCategories(): Collection
- {
- return $this->categories;
- }
+ /** @var array */
+ public array $categories = [];
public function addCategory(PrestashopCategory $category): self
{
- $this->categories->add($category);
-
- return $this;
- }
-
- public function removeCategory(PrestashopCategory $category): self
- {
- $this->categories->removeElement($category);
+ $this->categories[] = $category;
return $this;
}
diff --git a/src/Entity/PrestashopCategory.php b/src/Entity/PrestashopCategory.php
index f39ee4e..6a814b8 100644
--- a/src/Entity/PrestashopCategory.php
+++ b/src/Entity/PrestashopCategory.php
@@ -1,308 +1,70 @@
- */
- private Collection $name;
-
- /** @var Collection */
- private Collection $linkRewrite;
-
- /** @var Collection */
- private Collection $description;
-
- /** @var Collection */
- private Collection $metaTitle;
-
- /** @var Collection */
- private Collection $metaDescription;
-
- /** @var Collection */
- private Collection $metaKeywords;
-
- public function __construct()
- {
- $this->name = new ArrayCollection();
- $this->linkRewrite = new ArrayCollection();
- $this->description = new ArrayCollection();
- $this->metaTitle = new ArrayCollection();
- $this->metaDescription = new ArrayCollection();
- $this->metaKeywords = new ArrayCollection();
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
- public function getIdParent(): ?int
- {
- return $this->idParent;
- }
-
- public function getLevelDepth(): ?int
- {
- return $this->levelDepth;
- }
-
- public function getNbProductsRecursive(): ?int
- {
- return $this->nbProductsRecursive;
- }
-
- public function getActive(): ?int
- {
- return $this->active;
- }
-
- public function getIdShopDefault(): ?int
- {
- return $this->idShopDefault;
- }
-
- public function getIsRootCategory(): ?int
- {
- return $this->isRootCategory;
- }
-
- public function getPosition(): ?int
- {
- return $this->position;
- }
-
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
- public function getDateUpd(): ?\DateTimeInterface
- {
- return $this->dateUpd;
- }
-
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
-
- /**
- * @return Collection
- */
- public function getLinkRewrite(): Collection
- {
- return $this->linkRewrite;
- }
-
- /**
- * @return Collection
- */
- public function getDescription(): Collection
- {
- return $this->description;
- }
-
- /**
- * @return Collection
- */
- public function getMetaTitle(): Collection
- {
- return $this->metaTitle;
- }
-
- /**
- * @return Collection
- */
- public function getMetaDescription(): Collection
- {
- return $this->metaDescription;
- }
-
- /**
- * @return Collection
- */
- public function getMetaKeywords(): Collection
- {
- return $this->metaKeywords;
- }
-
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function setIdParent(?int $idParent): self
- {
- $this->idParent = $idParent;
-
- return $this;
- }
-
- public function setLevelDepth(?int $levelDepth): self
- {
- $this->levelDepth = $levelDepth;
-
- return $this;
- }
-
- public function setNbProductsRecursive(?int $nbProductsRecursive): self
- {
- $this->nbProductsRecursive = $nbProductsRecursive;
-
- return $this;
- }
-
- public function setActive(?int $active): self
- {
- $this->active = $active;
-
- return $this;
- }
-
- public function setIdShopDefault(?int $idShopDefault): self
- {
- $this->idShopDefault = $idShopDefault;
-
- return $this;
- }
-
- public function setIsRootCategory(?int $isRootCategory): self
- {
- $this->isRootCategory = $isRootCategory;
-
- return $this;
- }
-
- public function setPosition(?int $position): self
- {
- $this->position = $position;
-
- return $this;
- }
-
- public function setDateAdd(?\DateTimeInterface $dateAdd): self
- {
- $this->dateAdd = $dateAdd;
-
- return $this;
- }
-
- public function setDateUpd(?\DateTimeInterface $dateUpd): self
- {
- $this->dateUpd = $dateUpd;
-
- return $this;
- }
+ public ?int $id = null;
+ public ?int $idParent = null;
+ public ?int $levelDepth = null;
+ public ?int $nbProductsRecursive = null;
+ public ?int $active = null;
+ public ?int $idShopDefault = null;
+ public ?int $isRootCategory = null;
+ public ?int $position = null;
+ public ?\DateTimeInterface $dateAdd = null;
+ public ?\DateTimeInterface $dateUpd = null;
+ /** @var array */
+ public array $name = [];
+ /** @var array */
+ public array $linkRewrite = [];
+ /** @var array */
+ public array $description = [];
+ /** @var array */
+ public array $metaTitle = [];
+ /** @var array */
+ public array $metaDescription = [];
+ /** @var array */
+ public array $metaKeywords = [];
public function addName(PrestashopItem $name): self
{
- $this->name->add($name);
-
- return $this;
- }
-
- public function removeName(PrestashopItem $name): self
- {
- $this->name->removeElement($name);
+ $this->name[] = $name;
return $this;
}
public function addLinkRewrite(PrestashopItem $linkRewrite): self
{
- $this->linkRewrite->add($linkRewrite);
-
- return $this;
- }
-
- public function removeLinkRewrite(PrestashopItem $linkRewrite): self
- {
- $this->linkRewrite->removeElement($linkRewrite);
+ $this->linkRewrite[] = $linkRewrite;
return $this;
}
public function addDescription(PrestashopItem $description): self
{
- $this->description->add($description);
-
- return $this;
- }
-
- public function removeDescription(PrestashopItem $description): self
- {
- $this->description->removeElement($description);
+ $this->description[] = $description;
return $this;
}
public function addMetaTitle(PrestashopItem $metaTitle): self
{
- $this->metaTitle->add($metaTitle);
-
- return $this;
- }
-
- public function removeMetaTitle(PrestashopItem $metaTitle): self
- {
- $this->metaTitle->removeElement($metaTitle);
+ $this->metaTitle[] = $metaTitle;
return $this;
}
public function addMetaDescription(PrestashopItem $metaDescription): self
{
- $this->metaDescription->add($metaDescription);
-
- return $this;
- }
-
- public function removeMetaDescription(PrestashopItem $metaDescription): self
- {
- $this->metaDescription->removeElement($metaDescription);
+ $this->metaDescription[] = $metaDescription;
return $this;
}
public function addMetaKeyword(PrestashopItem $metaKeyword): self
{
- $this->metaKeywords->add($metaKeyword);
-
- return $this;
- }
-
- public function removeMetaKeyword(PrestashopItem $metaKeyword): self
- {
- $this->metaKeywords->removeElement($metaKeyword);
+ $this->metaKeywords[] = $metaKeyword;
return $this;
}
diff --git a/src/Entity/PrestashopCombination.php b/src/Entity/PrestashopCombination.php
index f4d97cf..5820dcf 100644
--- a/src/Entity/PrestashopCombination.php
+++ b/src/Entity/PrestashopCombination.php
@@ -1,258 +1,133 @@
-ean13;
- }
+ public ?string $ean13;
+ public ?int $id = null;
+ public ?int $idProduct = null;
+ public ?string $location = null;
+ public ?string $isbn = null;
+ public ?string $upc = null;
+ public ?int $quantity = null;
+ public ?string $reference = null;
+ public ?string $supplierReference = null;
+ public ?float $wholesalePrice = null;
+ public ?float $price = null;
+ public ?float $ecotax = null;
+ public ?float $weight = null;
+ public ?string $unitPriceImpact = null;
+ public ?int $minimalQuantity = null;
+ public ?bool $defaultOn = null;
+ public ?\DateTime $availableDate = null;
+ public ?PrestashopAssociations $associations = null;
public function setEan13(?string $ean13): self
{
$this->ean13 = $ean13;
-
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdProduct(): ?int
- {
- return $this->idProduct;
- }
-
public function setIdProduct(?int $idProduct): self
{
$this->idProduct = $idProduct;
-
return $this;
}
- public function getLocation(): ?string
- {
- return $this->location;
- }
-
public function setLocation(?string $location): self
{
$this->location = $location;
-
return $this;
}
- public function getIsbn(): ?string
- {
- return $this->isbn;
- }
-
public function setIsbn(?string $isbn): self
{
$this->isbn = $isbn;
-
return $this;
}
- public function getUpc(): ?string
- {
- return $this->upc;
- }
-
public function setUpc(?string $upc): self
{
$this->upc = $upc;
-
return $this;
}
- public function getQuantity(): ?int
- {
- return $this->quantity;
- }
-
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
-
return $this;
}
- public function getReference(): ?string
- {
- return $this->reference;
- }
-
public function setReference(?string $reference): self
{
$this->reference = $reference;
-
return $this;
}
- public function getSupplierReference(): ?string
- {
- return $this->supplierReference;
- }
-
public function setSupplierReference(?string $supplierReference): self
{
$this->supplierReference = $supplierReference;
-
return $this;
}
- public function getWholesalePrice(): ?float
- {
- return $this->wholesalePrice;
- }
-
public function setWholesalePrice(?float $wholesalePrice): self
{
$this->wholesalePrice = $wholesalePrice;
-
return $this;
}
- public function getPrice(): ?float
- {
- return $this->price;
- }
-
public function setPrice(?float $price): self
{
$this->price = $price;
-
return $this;
}
- public function getEcotax(): ?float
- {
- return $this->ecotax;
- }
-
public function setEcotax(?float $ecotax): self
{
$this->ecotax = $ecotax;
-
return $this;
}
- public function getWeight(): ?float
- {
- return $this->weight;
- }
-
public function setWeight(?float $weight): self
{
$this->weight = $weight;
-
return $this;
}
- public function getUnitPriceImpact(): ?string
- {
- return $this->unitPriceImpact;
- }
-
public function setUnitPriceImpact(?string $unitPriceImpact): self
{
$this->unitPriceImpact = $unitPriceImpact;
-
return $this;
}
- public function getMinimalQuantity(): ?int
- {
- return $this->minimalQuantity;
- }
-
public function setMinimalQuantity(?int $minimalQuantity): self
{
$this->minimalQuantity = $minimalQuantity;
-
return $this;
}
- public function getDefaultOn(): ?bool
- {
- return $this->defaultOn;
- }
-
public function setDefaultOn(?bool $defaultOn): self
{
$this->defaultOn = $defaultOn;
-
return $this;
}
- public function getAvailableDate(): ?\DateTime
- {
- return $this->availableDate;
- }
-
public function setAvailableDate(?\DateTime $availableDate): self
{
$this->availableDate = $availableDate;
-
return $this;
}
- public function getAssociations(): ?PrestashopAssociations
- {
- return $this->associations;
- }
-
public function setAssociations(?PrestashopAssociations $associations): self
{
$this->associations = $associations;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopCombinations.php b/src/Entity/PrestashopCombinations.php
index 1c4fb58..3857e43 100644
--- a/src/Entity/PrestashopCombinations.php
+++ b/src/Entity/PrestashopCombinations.php
@@ -1,38 +1,15 @@
- */
- private Collection $combinations;
-
- public function __construct()
- {
- $this->combinations = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCombinations(): Collection
- {
- return $this->combinations;
- }
+ /** @var array */
+ public array $combinations = [];
public function addCombination(PrestashopCombination $combination): self
{
- $this->combinations->add($combination);
-
- return $this;
- }
-
- public function removeCombination(PrestashopCombination $combination): self
- {
- $this->combinations->removeElement($combination);
+ $this->combinations[] = $combination;
return $this;
}
diff --git a/src/Entity/PrestashopConfiguration.php b/src/Entity/PrestashopConfiguration.php
index e151823..452acaa 100644
--- a/src/Entity/PrestashopConfiguration.php
+++ b/src/Entity/PrestashopConfiguration.php
@@ -1,4 +1,4 @@
- */
- private Collection $configurations;
-
- public function __construct()
- {
- $this->configurations = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getConfigurations(): Collection
- {
- return $this->configurations;
- }
+ /** @var array */
+ public array $configurations = [];
public function addConfiguration(PrestashopConfiguration $configuration): self
{
- $this->configurations->add($configuration);
-
- return $this;
- }
-
- public function removeConfiguration(PrestashopConfiguration $configuration): self
- {
- $this->configurations->removeElement($configuration);
+ $this->configurations[] = $configuration;
return $this;
}
diff --git a/src/Entity/PrestashopContact.php b/src/Entity/PrestashopContact.php
index b00edc2..bba3b87 100644
--- a/src/Entity/PrestashopContact.php
+++ b/src/Entity/PrestashopContact.php
@@ -1,4 +1,4 @@
- */
- private Collection $contacts;
-
- public function __construct()
- {
- $this->contacts = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getContacts(): Collection
- {
- return $this->contacts;
- }
+{
+ /** @var array */
+ public array $contacts = [];
public function addContact(PrestashopContact $contact): self
{
- $this->contacts->add($contact);
-
- return $this;
- }
-
- public function removeContact(PrestashopContact $contact): self
- {
- $this->contacts->removeElement($contact);
+ $this->contacts[] = $contact;
return $this;
}
diff --git a/src/Entity/PrestashopContentManagementSystem.php b/src/Entity/PrestashopContentManagementSystem.php
index b0b437c..5f93034 100644
--- a/src/Entity/PrestashopContentManagementSystem.php
+++ b/src/Entity/PrestashopContentManagementSystem.php
@@ -1,4 +1,4 @@
- */
- private Collection $countries;
-
- public function __construct()
- {
- $this->countries = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCountries(): Collection
- {
- return $this->countries;
- }
+ /** @var array */
+ public array $countries = [];
public function addCountry(PrestashopCountry $country): self
{
- $this->countries->add($country);
-
- return $this;
- }
-
- public function removeCountry(PrestashopCountry $country): self
- {
- $this->countries->removeElement($country);
+ $this->countries[] = $country;
return $this;
}
diff --git a/src/Entity/PrestashopCountry.php b/src/Entity/PrestashopCountry.php
index 7851506..9c91a5d 100644
--- a/src/Entity/PrestashopCountry.php
+++ b/src/Entity/PrestashopCountry.php
@@ -1,179 +1,86 @@
- */
- private Collection $name;
-
- private ?int $id = null;
-
- private ?int $idCurrency = null;
-
- private ?int $callPrefix = null;
-
- private ?string $isoCode = null;
-
- private ?bool $active = null;
-
- private ?bool $needIdentificationNumber = null;
-
- private ?bool $needZipCode = null;
-
- private ?string $zipCodeFormat = null;
-
- private ?bool $displayTaxLabel = null;
-
- public function __construct()
- {
- $this->name = new ArrayCollection();
- }
-
- public function getContainsStates(): ?bool
- {
- return $this->containsStates;
- }
-
- public function setContainsStates(?bool $containsStates): self
- {
- $this->containsStates = $containsStates;
-
- return $this;
- }
-
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
+ public ?bool $containsStates = null;
+ /** @var array */
+ public array $name = [];
+ public ?int $id = null;
+ public ?int $idCurrency = null;
+ public ?int $callPrefix = null;
+ public ?string $isoCode = null;
+ public ?bool $active = null;
+ public ?bool $needIdentificationNumber = null;
+ public ?bool $needZipCode = null;
+ public ?string $zipCodeFormat = null;
+ public ?bool $displayTaxLabel = null;
public function addName(PrestashopItem $prestashopItem): self
{
- $this->name->add($prestashopItem);
+ $this->name[] = $prestashopItem;
return $this;
}
- public function removeName(PrestashopItem $prestashopItem): self
+ public function setContainsStates(?bool $containsStates): self
{
- $this->name->removeElement($prestashopItem);
-
+ $this->containsStates = $containsStates;
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdCurrency(): ?int
- {
- return $this->idCurrency;
- }
-
public function setIdCurrency(?int $idCurrency): self
{
$this->idCurrency = $idCurrency;
-
return $this;
}
- public function getCallPrefix(): ?int
- {
- return $this->callPrefix;
- }
-
public function setCallPrefix(?int $callPrefix): self
{
$this->callPrefix = $callPrefix;
-
return $this;
}
- public function getIsoCode(): ?string
- {
- return $this->isoCode;
- }
-
public function setIsoCode(?string $isoCode): self
{
$this->isoCode = $isoCode;
-
return $this;
}
- public function getActive(): ?bool
- {
- return $this->active;
- }
-
public function setActive(?bool $active): self
{
$this->active = $active;
-
return $this;
}
- public function getNeedIdentificationNumber(): ?bool
- {
- return $this->needIdentificationNumber;
- }
-
public function setNeedIdentificationNumber(?bool $needIdentificationNumber): self
{
$this->needIdentificationNumber = $needIdentificationNumber;
-
return $this;
}
- public function getNeedZipCode(): ?bool
- {
- return $this->needZipCode;
- }
-
public function setNeedZipCode(?bool $needZipCode): self
{
$this->needZipCode = $needZipCode;
-
return $this;
}
- public function getZipCodeFormat(): ?string
- {
- return $this->zipCodeFormat;
- }
-
public function setZipCodeFormat(?string $zipCodeFormat): self
{
$this->zipCodeFormat = $zipCodeFormat;
-
return $this;
}
- public function getDisplayTaxLabel(): ?bool
- {
- return $this->displayTaxLabel;
- }
-
public function setDisplayTaxLabel(?bool $displayTaxLabel): self
{
$this->displayTaxLabel = $displayTaxLabel;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopCurrencies.php b/src/Entity/PrestashopCurrencies.php
index 53ac7a2..63262c4 100644
--- a/src/Entity/PrestashopCurrencies.php
+++ b/src/Entity/PrestashopCurrencies.php
@@ -1,38 +1,15 @@
- */
- private Collection $currencies;
-
- public function __construct()
- {
- $this->currencies = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCurrencies(): Collection
- {
- return $this->currencies;
- }
+ /** @var array */
+ public array $currencies = [];
public function addCurrency(PrestashopCurrency $currency): self
{
- $this->currencies->add($currency);
-
- return $this;
- }
-
- public function removeCurrency(PrestashopCurrency $currency): self
- {
- $this->currencies->removeElement($currency);
+ $this->currencies[] = $currency;
return $this;
}
diff --git a/src/Entity/PrestashopCurrency.php b/src/Entity/PrestashopCurrency.php
index cf1315d..08891b3 100644
--- a/src/Entity/PrestashopCurrency.php
+++ b/src/Entity/PrestashopCurrency.php
@@ -1,4 +1,4 @@
-associations;
- }
+ public PrestashopAssociations $associations;
+ public ?int $id = null;
+ public ?int $idDefaultGroup = null;
+ public ?int $idLang = null;
+ public ?\DateTime $newsletterDateAdd = null;
+ public ?string $ipRegistrationNewsletter = null;
+ public ?\DateTime $lastPasswdGen = null;
+ public ?string $secureKey = null;
+ public ?bool $deleted = null;
+ public ?string $passwd = null;
+ public ?string $lastname = null;
+ public ?string $firstname = null;
+ public ?string $email = null;
+ public ?int $idGender = null;
+ public ?\DateTime $birthday = null;
+ public ?bool $newsletter = null;
+ public ?bool $optin = null;
+ public ?string $website = null;
+ public ?string $company = null;
+ public ?string $siret = null;
+ public ?string $ape = null;
+ public ?float $outstandingAllowAmount = null;
+ public ?bool $showPublicPrices = null;
+ public ?int $idRisk = null;
+ public ?int $maxPaymentDays = null;
+ public ?bool $active = null;
+ public ?string $note = null;
+ public ?bool $isGuest = null;
+ public ?int $idShop = null;
+ public ?int $idShopGroup = null;
+ public ?\DateTime $dateAdd = null;
+ public ?\DateTime $dateUpd = null;
+ public ?string $resetPasswordToken = null;
+ public ?\DateTime $resetPasswordValidity = null;
public function setAssociations(PrestashopAssociations $associations): self
{
$this->associations = $associations;
-
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdDefaultGroup(): ?int
- {
- return $this->idDefaultGroup;
- }
-
public function setIdDefaultGroup(?int $idDefaultGroup): self
{
$this->idDefaultGroup = $idDefaultGroup;
-
return $this;
}
- public function getIdLang(): ?int
- {
- return $this->idLang;
- }
-
public function setIdLang(?int $idLang): self
{
$this->idLang = $idLang;
-
return $this;
}
- public function getNewsletterDateAdd(): ?\DateTime
- {
- return $this->newsletterDateAdd;
- }
-
public function setNewsletterDateAdd(?\DateTime $newsletterDateAdd): self
{
$this->newsletterDateAdd = $newsletterDateAdd;
-
return $this;
}
- public function getIpRegistrationNewsletter(): ?string
- {
- return $this->ipRegistrationNewsletter;
- }
-
public function setIpRegistrationNewsletter(?string $ipRegistrationNewsletter): self
{
$this->ipRegistrationNewsletter = $ipRegistrationNewsletter;
-
return $this;
}
- public function getLastPasswdGen(): ?\DateTime
- {
- return $this->lastPasswdGen;
- }
-
public function setLastPasswdGen(?\DateTime $lastPasswdGen): self
{
$this->lastPasswdGen = $lastPasswdGen;
-
return $this;
}
- public function getSecureKey(): ?string
- {
- return $this->secureKey;
- }
-
public function setSecureKey(?string $secureKey): self
{
$this->secureKey = $secureKey;
-
return $this;
}
- public function getDeleted(): ?bool
- {
- return $this->deleted;
- }
-
public function setDeleted(?bool $deleted): self
{
$this->deleted = $deleted;
-
return $this;
}
- public function getPasswd(): ?string
- {
- return $this->passwd;
- }
-
public function setPasswd(?string $passwd): self
{
$this->passwd = $passwd;
-
return $this;
}
- public function getLastname(): ?string
- {
- return $this->lastname;
- }
-
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
-
return $this;
}
- public function getFirstname(): ?string
- {
- return $this->firstname;
- }
-
public function setFirstname(?string $firstname): self
{
$this->firstname = $firstname;
-
return $this;
}
- public function getEmail(): ?string
- {
- return $this->email;
- }
-
public function setEmail(?string $email): self
{
$this->email = $email;
-
return $this;
}
- public function getIdGender(): ?int
- {
- return $this->idGender;
- }
-
public function setIdGender(?int $idGender): self
{
$this->idGender = $idGender;
-
return $this;
}
- public function getBirthday(): ?\DateTime
- {
- return $this->birthday;
- }
-
public function setBirthday(?\DateTime $birthday): self
{
$this->birthday = $birthday;
-
return $this;
}
- public function getNewsletter(): ?bool
- {
- return $this->newsletter;
- }
-
public function setNewsletter(?bool $newsletter): self
{
$this->newsletter = $newsletter;
-
return $this;
}
- public function getOptin(): ?bool
- {
- return $this->optin;
- }
-
public function setOptin(?bool $optin): self
{
$this->optin = $optin;
-
return $this;
}
- public function getWebsite(): ?string
- {
- return $this->website;
- }
-
public function setWebsite(?string $website): self
{
$this->website = $website;
-
return $this;
}
- public function getCompany(): ?string
- {
- return $this->company;
- }
-
public function setCompany(?string $company): self
{
$this->company = $company;
-
return $this;
}
- public function getSiret(): ?string
- {
- return $this->siret;
- }
-
public function setSiret(?string $siret): self
{
$this->siret = $siret;
-
return $this;
}
- public function getApe(): ?string
- {
- return $this->ape;
- }
-
public function setApe(?string $ape): self
{
$this->ape = $ape;
-
return $this;
}
- public function getOutstandingAllowAmount(): ?float
- {
- return $this->outstandingAllowAmount;
- }
-
public function setOutstandingAllowAmount(?float $outstandingAllowAmount): self
{
$this->outstandingAllowAmount = $outstandingAllowAmount;
-
return $this;
}
- public function getShowPublicPrices(): ?bool
- {
- return $this->showPublicPrices;
- }
-
public function setShowPublicPrices(?bool $showPublicPrices): self
{
$this->showPublicPrices = $showPublicPrices;
-
return $this;
}
- public function getIdRisk(): ?int
- {
- return $this->idRisk;
- }
-
public function setIdRisk(?int $idRisk): self
{
$this->idRisk = $idRisk;
-
return $this;
}
- public function getMaxPaymentDays(): ?int
- {
- return $this->maxPaymentDays;
- }
-
public function setMaxPaymentDays(?int $maxPaymentDays): self
{
$this->maxPaymentDays = $maxPaymentDays;
-
return $this;
}
- public function getActive(): ?bool
- {
- return $this->active;
- }
-
public function setActive(?bool $active): self
{
$this->active = $active;
-
return $this;
}
- public function getNote(): ?string
- {
- return $this->note;
- }
-
public function setNote(?string $note): self
{
$this->note = $note;
-
return $this;
}
- public function getIsGuest(): ?bool
- {
- return $this->isGuest;
- }
-
public function setIsGuest(?bool $isGuest): self
{
$this->isGuest = $isGuest;
-
return $this;
}
- public function getIdShop(): ?int
- {
- return $this->idShop;
- }
-
public function setIdShop(?int $idShop): self
{
$this->idShop = $idShop;
-
return $this;
}
- public function getIdShopGroup(): ?int
- {
- return $this->idShopGroup;
- }
-
public function setIdShopGroup(?int $idShopGroup): self
{
$this->idShopGroup = $idShopGroup;
-
return $this;
}
- public function getDateAdd(): ?\DateTime
- {
- return $this->dateAdd;
- }
-
public function setDateAdd(?\DateTime $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
- public function getDateUpd(): ?\DateTime
- {
- return $this->dateUpd;
- }
-
public function setDateUpd(?\DateTime $dateUpd): self
{
$this->dateUpd = $dateUpd;
-
return $this;
}
- public function getResetPasswordToken(): ?string
- {
- return $this->resetPasswordToken;
- }
-
public function setResetPasswordToken(?string $resetPasswordToken): self
{
$this->resetPasswordToken = $resetPasswordToken;
-
return $this;
}
- public function getResetPasswordValidity(): ?\DateTime
- {
- return $this->resetPasswordValidity;
- }
-
public function setResetPasswordValidity(?\DateTime $resetPasswordValidity): self
{
$this->resetPasswordValidity = $resetPasswordValidity;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopCustomers.php b/src/Entity/PrestashopCustomers.php
index 1ae6eec..6a04527 100644
--- a/src/Entity/PrestashopCustomers.php
+++ b/src/Entity/PrestashopCustomers.php
@@ -1,38 +1,15 @@
- */
- private Collection $customers;
-
- public function __construct()
- {
- $this->customers = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getCustomers(): Collection
- {
- return $this->customers;
- }
+ /** @var array */
+ public array $customers = [];
public function addCustomer(PrestashopCustomer $customer): self
{
- $this->customers->add($customer);
-
- return $this;
- }
-
- public function removeCustomer(PrestashopCustomer $customer): self
- {
- $this->customers->removeElement($customer);
+ $this->customers[] = $customer;
return $this;
}
diff --git a/src/Entity/PrestashopGroup.php b/src/Entity/PrestashopGroup.php
index 2a969b9..c9a769b 100644
--- a/src/Entity/PrestashopGroup.php
+++ b/src/Entity/PrestashopGroup.php
@@ -1,23 +1,14 @@
-id;
- }
-
- /**
- * @return PrestashopGroup
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopImage.php b/src/Entity/PrestashopImage.php
index 8651a9d..fad36b8 100644
--- a/src/Entity/PrestashopImage.php
+++ b/src/Entity/PrestashopImage.php
@@ -1,20 +1,14 @@
-id;
- }
+ public ?int $id = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopImages.php b/src/Entity/PrestashopImages.php
index 177986b..744eebe 100644
--- a/src/Entity/PrestashopImages.php
+++ b/src/Entity/PrestashopImages.php
@@ -1,38 +1,15 @@
- */
- private Collection $images;
-
- public function __construct()
- {
- $this->images = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getImages(): Collection
- {
- return $this->images;
- }
+ /** @var array */
+ public array $images = [];
public function addImage(PrestashopImage $image): self
{
- $this->images->add($image);
-
- return $this;
- }
-
- public function removeImage(PrestashopImage $image): self
- {
- $this->images->removeElement($image);
+ $this->images[] = $image;
return $this;
}
diff --git a/src/Entity/PrestashopItem.php b/src/Entity/PrestashopItem.php
index edf1dbb..692c6b4 100644
--- a/src/Entity/PrestashopItem.php
+++ b/src/Entity/PrestashopItem.php
@@ -1,34 +1,21 @@
-id;
- }
+ public ?int $id;
+ public ?string $value;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getValue(): ?string
- {
- return $this->value;
- }
-
public function setValue(?string $value): self
{
$this->value = $value;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrder.php b/src/Entity/PrestashopOrder.php
index 30cf8bc..5cf008e 100644
--- a/src/Entity/PrestashopOrder.php
+++ b/src/Entity/PrestashopOrder.php
@@ -1,805 +1,336 @@
-associations;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setAssociations(PrestashopAssociations $associations): self
{
$this->associations = $associations;
-
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdAddressDelivery(): ?int
- {
- return $this->idAddressDelivery;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdAddressDelivery(?int $idAddressDelivery): self
{
$this->idAddressDelivery = $idAddressDelivery;
-
return $this;
}
- public function getIdAddressInvoice(): ?int
- {
- return $this->idAddressInvoice;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdAddressInvoice(?int $idAddressInvoice): self
{
$this->idAddressInvoice = $idAddressInvoice;
-
return $this;
}
- public function getIdCart(): ?int
- {
- return $this->idCart;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdCart(?int $idCart): self
{
$this->idCart = $idCart;
-
return $this;
}
- public function getIdCurrency(): ?int
- {
- return $this->idCurrency;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdCurrency(?int $idCurrency): self
{
$this->idCurrency = $idCurrency;
-
return $this;
}
- public function getIdLang(): ?int
- {
- return $this->idLang;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdLang(?int $idLang): self
{
$this->idLang = $idLang;
-
return $this;
}
- public function getIdCustomer(): ?int
- {
- return $this->idCustomer;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdCustomer(?int $idCustomer): self
{
$this->idCustomer = $idCustomer;
-
return $this;
}
- public function getIdCarrier(): ?int
- {
- return $this->idCarrier;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdCarrier(?int $idCarrier): self
{
$this->idCarrier = $idCarrier;
-
return $this;
}
- public function getCurrentState(): ?int
- {
- return $this->currentState;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setCurrentState(?int $currentState): self
{
$this->currentState = $currentState;
-
return $this;
}
- public function getModule(): ?string
- {
- return $this->module;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setModule(?string $module): self
{
$this->module = $module;
-
return $this;
}
- public function getInvoiceNumber(): ?string
- {
- return $this->invoiceNumber;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setInvoiceNumber(?string $invoiceNumber): self
{
$this->invoiceNumber = $invoiceNumber;
-
return $this;
}
- public function getInvoiceDate(): ?\DateTime
- {
- return $this->invoiceDate;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setInvoiceDate(?\DateTime $invoiceDate): self
{
$this->invoiceDate = $invoiceDate;
-
return $this;
}
- public function getDeliveryNumber(): ?string
- {
- return $this->deliveryNumber;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setDeliveryNumber(?string $deliveryNumber): self
{
$this->deliveryNumber = $deliveryNumber;
-
return $this;
}
- public function getDeliveryDate(): ?\DateTime
- {
- return $this->deliveryDate;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setDeliveryDate(?\DateTime $deliveryDate): self
{
$this->deliveryDate = $deliveryDate;
-
return $this;
}
- public function getValid(): ?string
- {
- return $this->valid;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setValid(?string $valid): self
{
$this->valid = $valid;
-
return $this;
}
- public function getDateAdd(): ?\DateTime
- {
- return $this->dateAdd;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setDateAdd(?\DateTime $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
- public function getDateUpd(): ?\DateTime
- {
- return $this->dateUpd;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setDateUpd(?\DateTime $dateUpd): self
{
$this->dateUpd = $dateUpd;
-
return $this;
}
- public function getShippingNumber(): ?string
- {
- return $this->shippingNumber;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setShippingNumber(?string $shippingNumber): self
{
$this->shippingNumber = $shippingNumber;
-
return $this;
}
- public function getIdShopGroup(): ?int
- {
- return $this->idShopGroup;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdShopGroup(?int $idShopGroup): self
{
$this->idShopGroup = $idShopGroup;
-
return $this;
}
- public function getIdShop(): ?int
- {
- return $this->idShop;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setIdShop(?int $idShop): self
{
$this->idShop = $idShop;
-
return $this;
}
- public function getSecureKey(): ?string
- {
- return $this->secureKey;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setSecureKey(?string $secureKey): self
{
$this->secureKey = $secureKey;
-
return $this;
}
- public function getPayment(): ?string
- {
- return $this->payment;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setPayment(?string $payment): self
{
$this->payment = $payment;
-
return $this;
}
- public function isRecyclable(): ?bool
- {
- return $this->recyclable;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setRecyclable(?bool $recyclable): self
{
$this->recyclable = $recyclable;
-
return $this;
}
- public function isGift(): ?bool
- {
- return $this->gift;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setGift(?bool $gift): self
{
$this->gift = $gift;
-
return $this;
}
- public function getGiftMessage(): ?string
- {
- return $this->giftMessage;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setGiftMessage(?string $giftMessage): self
{
$this->giftMessage = $giftMessage;
-
return $this;
}
- public function getMobileTheme(): ?bool
- {
- return $this->mobileTheme;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setMobileTheme(?bool $mobileTheme): self
{
$this->mobileTheme = $mobileTheme;
-
return $this;
}
- public function getTotalDiscounts(): ?float
- {
- return $this->totalDiscounts;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalDiscounts(?float $totalDiscounts): self
{
$this->totalDiscounts = $totalDiscounts;
-
return $this;
}
- public function getTotalDiscountsTaxIncl(): ?float
- {
- return $this->totalDiscountsTaxIncl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalDiscountsTaxIncl(?float $totalDiscountsTaxIncl): self
{
$this->totalDiscountsTaxIncl = $totalDiscountsTaxIncl;
-
return $this;
}
- public function getTotalDiscountsTaxExcl(): ?float
- {
- return $this->totalDiscountsTaxExcl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalDiscountsTaxExcl(?float $totalDiscountsTaxExcl): self
{
$this->totalDiscountsTaxExcl = $totalDiscountsTaxExcl;
-
return $this;
}
- public function getTotalPaid(): ?float
- {
- return $this->totalPaid;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalPaid(?float $totalPaid): self
{
$this->totalPaid = $totalPaid;
-
return $this;
}
- public function getTotalPaidTaxIncl(): ?float
- {
- return $this->totalPaidTaxIncl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalPaidTaxIncl(?float $totalPaidTaxIncl): self
{
$this->totalPaidTaxIncl = $totalPaidTaxIncl;
-
return $this;
}
- public function getTotalPaidTaxExcl(): ?float
- {
- return $this->totalPaidTaxExcl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalPaidTaxExcl(?float $totalPaidTaxExcl): self
{
$this->totalPaidTaxExcl = $totalPaidTaxExcl;
-
return $this;
}
- public function getTotalPaidReal(): ?float
- {
- return $this->totalPaidReal;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalPaidReal(?float $totalPaidReal): self
{
$this->totalPaidReal = $totalPaidReal;
-
return $this;
}
- public function getTotalProducts(): ?float
- {
- return $this->totalProducts;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalProducts(?float $totalProducts): self
{
$this->totalProducts = $totalProducts;
-
return $this;
}
- public function getTotalProductsWt(): ?float
- {
- return $this->totalProductsWt;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalProductsWt(?float $totalProductsWt): self
{
$this->totalProductsWt = $totalProductsWt;
-
return $this;
}
- public function getTotalShipping(): ?float
- {
- return $this->totalShipping;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalShipping(?float $totalShipping): self
{
$this->totalShipping = $totalShipping;
-
return $this;
}
- public function getTotalShippingTaxIncl(): ?float
- {
- return $this->totalShippingTaxIncl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalShippingTaxIncl(?float $totalShippingTaxIncl): self
{
$this->totalShippingTaxIncl = $totalShippingTaxIncl;
-
return $this;
}
- public function getTotalShippingTaxExcl(): ?float
- {
- return $this->totalShippingTaxExcl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalShippingTaxExcl(?float $totalShippingTaxExcl): self
{
$this->totalShippingTaxExcl = $totalShippingTaxExcl;
-
return $this;
}
- public function getCarrierTaxRate(): ?float
- {
- return $this->carrierTaxRate;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setCarrierTaxRate(?float $carrierTaxRate): self
{
$this->carrierTaxRate = $carrierTaxRate;
-
return $this;
}
- public function getTotalWrapping(): ?float
- {
- return $this->totalWrapping;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalWrapping(?float $totalWrapping): self
{
$this->totalWrapping = $totalWrapping;
-
return $this;
}
- public function getTotalWrappingTaxIncl(): ?float
- {
- return $this->totalWrappingTaxIncl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalWrappingTaxIncl(?float $totalWrappingTaxIncl): self
{
$this->totalWrappingTaxIncl = $totalWrappingTaxIncl;
-
return $this;
}
- public function getTotalWrappingTaxExcl(): ?float
- {
- return $this->totalWrappingTaxExcl;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setTotalWrappingTaxExcl(?float $totalWrappingTaxExcl): self
{
$this->totalWrappingTaxExcl = $totalWrappingTaxExcl;
-
return $this;
}
- public function getRoundMode(): ?int
- {
- return $this->roundMode;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setRoundMode(?int $roundMode): self
{
$this->roundMode = $roundMode;
-
return $this;
}
- public function getRoundType(): ?int
- {
- return $this->roundType;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setRoundType(?int $roundType): self
{
$this->roundType = $roundType;
-
return $this;
}
- public function getConversionRate(): ?float
- {
- return $this->conversionRate;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setConversionRate(?float $conversionRate): self
{
$this->conversionRate = $conversionRate;
-
return $this;
}
- public function getReference(): ?string
- {
- return $this->reference;
- }
-
- /**
- * @return PrestashopOrder
- */
public function setReference(?string $reference): self
{
$this->reference = $reference;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrderCarrier.php b/src/Entity/PrestashopOrderCarrier.php
index a92e0bf..ced2fa8 100644
--- a/src/Entity/PrestashopOrderCarrier.php
+++ b/src/Entity/PrestashopOrderCarrier.php
@@ -1,159 +1,70 @@
-id;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setIdOrder(?int $idOrder): self
{
$this->idOrder = $idOrder;
-
return $this;
}
- public function getIdCarrier(): ?int
- {
- return $this->idCarrier;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setIdCarrier(?int $idCarrier): self
{
$this->idCarrier = $idCarrier;
-
return $this;
}
- public function getIdOrderInvoice(): ?int
- {
- return $this->idOrderInvoice;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setIdOrderInvoice(?int $idOrderInvoice): self
{
$this->idOrderInvoice = $idOrderInvoice;
-
return $this;
}
- public function getWeight(): ?float
- {
- return $this->weight;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setWeight(?float $weight): self
{
$this->weight = $weight;
-
return $this;
}
- public function getShippingCostTaxExcl(): ?float
- {
- return $this->shippingCostTaxExcl;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setShippingCostTaxExcl(?float $shippingCostTaxExcl): self
{
$this->shippingCostTaxExcl = $shippingCostTaxExcl;
-
return $this;
}
- public function getShippingCostTaxIncl(): ?float
- {
- return $this->shippingCostTaxIncl;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setShippingCostTaxIncl(?float $shippingCostTaxIncl): self
{
$this->shippingCostTaxIncl = $shippingCostTaxIncl;
-
return $this;
}
- public function getTrackingNumber(): ?string
- {
- return $this->trackingNumber;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setTrackingNumber(?string $trackingNumber): self
{
$this->trackingNumber = $trackingNumber;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
- /**
- * @return PrestashopOrderCarrier
- */
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrderCarriers.php b/src/Entity/PrestashopOrderCarriers.php
index 40ebff2..ce03460 100644
--- a/src/Entity/PrestashopOrderCarriers.php
+++ b/src/Entity/PrestashopOrderCarriers.php
@@ -1,38 +1,15 @@
- */
- private Collection $orderCarriers;
-
- public function __construct()
- {
- $this->orderCarriers = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getOrderCarriers(): Collection
- {
- return $this->orderCarriers;
- }
+ /** @var array */
+ public array $orderCarriers = [];
public function addOrderCarrier(PrestashopOrderCarrier $orderCarrier): self
{
- $this->orderCarriers->add($orderCarrier);
-
- return $this;
- }
-
- public function removeOrderCarrier(PrestashopOrderCarrier $orderCarrier): self
- {
- $this->orderCarriers->removeElement($orderCarrier);
+ $this->orderCarriers[] = $orderCarrier;
return $this;
}
diff --git a/src/Entity/PrestashopOrderHistories.php b/src/Entity/PrestashopOrderHistories.php
index e38c6c2..347a9c0 100644
--- a/src/Entity/PrestashopOrderHistories.php
+++ b/src/Entity/PrestashopOrderHistories.php
@@ -1,38 +1,15 @@
- */
- private Collection $orderHistories;
-
- public function __construct()
- {
- $this->orderHistories = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getOrderHistories(): Collection
- {
- return $this->orderHistories;
- }
+ /** @var array */
+ public array $orderHistories = [];
public function addOrderHistorie(PrestashopOrderHistory $orderHistorie): self
{
- $this->orderHistories->add($orderHistorie);
-
- return $this;
- }
-
- public function removeOrderHistorie(PrestashopOrderHistory $orderHistorie): self
- {
- $this->orderHistories->removeElement($orderHistorie);
+ $this->orderHistories[] = $orderHistorie;
return $this;
}
diff --git a/src/Entity/PrestashopOrderHistory.php b/src/Entity/PrestashopOrderHistory.php
index fb5c1e1..3678656 100644
--- a/src/Entity/PrestashopOrderHistory.php
+++ b/src/Entity/PrestashopOrderHistory.php
@@ -1,76 +1,42 @@
-id;
- }
+ public ?int $id = null;
+ public ?string $idEmployee = null;
+ public ?int $idOrderState = null;
+ public ?int $idOrder = null;
+ public ?\DateTimeInterface $dateAdd = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdEmployee(): ?string
- {
- return $this->idEmployee;
- }
-
public function setIdEmployee(?string $idEmployee): self
{
$this->idEmployee = $idEmployee;
-
return $this;
}
- public function getIdOrderState(): ?int
- {
- return $this->idOrderState;
- }
-
public function setIdOrderState(?int $idOrderState): self
{
$this->idOrderState = $idOrderState;
-
return $this;
}
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
public function setIdOrder(?int $idOrder): self
{
$this->idOrder = $idOrder;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrderInvoice.php b/src/Entity/PrestashopOrderInvoice.php
index dba699f..041755f 100644
--- a/src/Entity/PrestashopOrderInvoice.php
+++ b/src/Entity/PrestashopOrderInvoice.php
@@ -1,329 +1,140 @@
-id;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setIdOrder(?int $idOrder): self
{
$this->idOrder = $idOrder;
-
return $this;
}
- public function getNumber(): ?int
- {
- return $this->number;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setNumber(?int $number): self
{
$this->number = $number;
-
return $this;
}
- public function getDeliveryNumber(): ?int
- {
- return $this->deliveryNumber;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setDeliveryNumber(?int $deliveryNumber): self
{
$this->deliveryNumber = $deliveryNumber;
-
return $this;
}
- public function getDeliveryDate(): ?\DateTimeInterface
- {
- return $this->deliveryDate;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setDeliveryDate(?\DateTimeInterface $deliveryDate): self
{
$this->deliveryDate = $deliveryDate;
-
return $this;
}
- public function getTotalDiscountTaxExcl(): ?float
- {
- return $this->totalDiscountTaxExcl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalDiscountTaxExcl(?float $totalDiscountTaxExcl): self
{
$this->totalDiscountTaxExcl = $totalDiscountTaxExcl;
-
return $this;
}
- public function getTotalDiscountTaxIncl(): ?float
- {
- return $this->totalDiscountTaxIncl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalDiscountTaxIncl(?float $totalDiscountTaxIncl): self
{
$this->totalDiscountTaxIncl = $totalDiscountTaxIncl;
-
return $this;
}
- public function getTotalPaidTaxExcl(): ?float
- {
- return $this->totalPaidTaxExcl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalPaidTaxExcl(?float $totalPaidTaxExcl): self
{
$this->totalPaidTaxExcl = $totalPaidTaxExcl;
-
return $this;
}
- public function getTotalPaidTaxIncl(): ?float
- {
- return $this->totalPaidTaxIncl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalPaidTaxIncl(?float $totalPaidTaxIncl): self
{
$this->totalPaidTaxIncl = $totalPaidTaxIncl;
-
return $this;
}
- public function getTotalProducts(): ?float
- {
- return $this->totalProducts;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalProducts(?float $totalProducts): self
{
$this->totalProducts = $totalProducts;
-
return $this;
}
- public function getTotalProductsWt(): ?float
- {
- return $this->totalProductsWt;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalProductsWt(?float $totalProductsWt): self
{
$this->totalProductsWt = $totalProductsWt;
-
return $this;
}
- public function getTotalShippingTaxExcl(): ?float
- {
- return $this->totalShippingTaxExcl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalShippingTaxExcl(?float $totalShippingTaxExcl): self
{
$this->totalShippingTaxExcl = $totalShippingTaxExcl;
-
return $this;
}
- public function getTotalShippingTaxIncl(): ?float
- {
- return $this->totalShippingTaxIncl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalShippingTaxIncl(?float $totalShippingTaxIncl): self
{
$this->totalShippingTaxIncl = $totalShippingTaxIncl;
-
return $this;
}
- public function getShippingTaxComputationMethod(): ?int
- {
- return $this->shippingTaxComputationMethod;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setShippingTaxComputationMethod(?int $shippingTaxComputationMethod): self
{
$this->shippingTaxComputationMethod = $shippingTaxComputationMethod;
-
return $this;
}
- public function getTotalWrappingTaxExcl(): ?float
- {
- return $this->totalWrappingTaxExcl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalWrappingTaxExcl(?float $totalWrappingTaxExcl): self
{
$this->totalWrappingTaxExcl = $totalWrappingTaxExcl;
-
return $this;
}
- public function getTotalWrappingTaxIncl(): ?float
- {
- return $this->totalWrappingTaxIncl;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setTotalWrappingTaxIncl(?float $totalWrappingTaxIncl): self
{
$this->totalWrappingTaxIncl = $totalWrappingTaxIncl;
-
return $this;
}
- public function getShopAddress(): ?string
- {
- return $this->shopAddress;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setShopAddress(?string $shopAddress): self
{
$this->shopAddress = $shopAddress;
-
return $this;
}
- public function getNote(): ?string
- {
- return $this->note;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setNote(?string $note): self
{
$this->note = $note;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
- /**
- * @return PrestashopOrderInvoice
- */
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrderInvoices.php b/src/Entity/PrestashopOrderInvoices.php
index 2f4a7a0..65ddb5b 100644
--- a/src/Entity/PrestashopOrderInvoices.php
+++ b/src/Entity/PrestashopOrderInvoices.php
@@ -1,38 +1,15 @@
- */
- private Collection $orderInvoices;
-
- public function __construct()
- {
- $this->orderInvoices = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getOrderInvoices(): Collection
- {
- return $this->orderInvoices;
- }
+ /** @var array */
+ public array $orderInvoices = [];
public function addOrderInvoice(PrestashopOrderInvoice $orderInvoice): self
{
- $this->orderInvoices->add($orderInvoice);
-
- return $this;
- }
-
- public function removeOrderInvoice(PrestashopOrderInvoice $orderInvoice): self
- {
- $this->orderInvoices->removeElement($orderInvoice);
+ $this->orderInvoices[] = $orderInvoice;
return $this;
}
diff --git a/src/Entity/PrestashopOrderRow.php b/src/Entity/PrestashopOrderRow.php
index be34de2..d31d48c 100644
--- a/src/Entity/PrestashopOrderRow.php
+++ b/src/Entity/PrestashopOrderRow.php
@@ -1,210 +1,91 @@
-productEan13;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductEan13(?string $productEan13): self
{
$this->productEan13 = $productEan13;
-
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getProductId(): ?int
- {
- return $this->productId;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductId(?int $productId): self
{
$this->productId = $productId;
-
return $this;
}
- public function getProductAttributeId(): ?int
- {
- return $this->productAttributeId;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductAttributeId(?int $productAttributeId): self
{
$this->productAttributeId = $productAttributeId;
-
return $this;
}
- public function getProductQuantity(): ?int
- {
- return $this->productQuantity;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductQuantity(?int $productQuantity): self
{
$this->productQuantity = $productQuantity;
-
return $this;
}
- public function getProductName(): ?string
- {
- return $this->productName;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductName(?string $productName): self
{
$this->productName = $productName;
-
return $this;
}
- public function getProductReference(): ?string
- {
- return $this->productReference;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductReference(?string $productReference): self
{
$this->productReference = $productReference;
-
return $this;
}
- public function getProductIsbn(): ?string
- {
- return $this->productIsbn;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductIsbn(?string $productIsbn): self
{
$this->productIsbn = $productIsbn;
-
return $this;
}
- public function getProductUpc(): ?string
- {
- return $this->productUpc;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductUpc(?string $productUpc): self
{
$this->productUpc = $productUpc;
-
return $this;
}
- public function getProductPrice(): ?float
- {
- return $this->productPrice;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setProductPrice(?float $productPrice): self
{
$this->productPrice = $productPrice;
-
return $this;
}
- public function getUnitPriceTaxIncl(): ?float
- {
- return $this->unitPriceTaxIncl;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setUnitPriceTaxIncl(?float $unitPriceTaxIncl): self
{
$this->unitPriceTaxIncl = $unitPriceTaxIncl;
-
return $this;
}
- public function getUnitPriceTaxExcl(): ?float
- {
- return $this->unitPriceTaxExcl;
- }
-
- /**
- * @return PrestashopOrderRow
- */
public function setUnitPriceTaxExcl(?float $unitPriceTaxExcl): self
{
$this->unitPriceTaxExcl = $unitPriceTaxExcl;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrderState.php b/src/Entity/PrestashopOrderState.php
index 7c1400c..c2e7652 100644
--- a/src/Entity/PrestashopOrderState.php
+++ b/src/Entity/PrestashopOrderState.php
@@ -1,303 +1,123 @@
- */
- private Collection $name;
-
- /** @var Collection */
- private Collection $template;
-
- private ?int $id = null;
-
- private ?bool $unremovable = null;
-
- private ?bool $delivery = null;
-
- private ?bool $hidden = null;
-
- private ?bool $sendEmail = null;
-
- private ?string $moduleName = null;
-
- private ?bool $invoice = null;
-
- private ?string $color = null;
-
- private ?bool $logable = null;
-
- private ?bool $shipped = null;
-
- private ?bool $paid = null;
-
- private ?bool $pdfDelivery = null;
-
- private ?bool $pdfInvoice = null;
-
- private ?bool $deleted = null;
-
- public function __construct()
- {
- $this->name = new ArrayCollection();
- $this->template = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
+ /** @var array */
+ public array $name = [];
+ /** @var array */
+ public array $template = [];
+ public ?int $id = null;
+ public ?bool $unremovable = null;
+ public ?bool $delivery = null;
+ public ?bool $hidden = null;
+ public ?bool $sendEmail = null;
+ public ?string $moduleName = null;
+ public ?bool $invoice = null;
+ public ?string $color = null;
+ public ?bool $logable = null;
+ public ?bool $shipped = null;
+ public ?bool $paid = null;
+ public ?bool $pdfDelivery = null;
+ public ?bool $pdfInvoice = null;
+ public ?bool $deleted = null;
public function addName(PrestashopItem $name): self
{
- $this->name->add($name);
-
- return $this;
- }
-
- public function removeName(PrestashopItem $name): self
- {
- $this->name->removeElement($name);
+ $this->name[] = $name;
return $this;
}
- /**
- * @return Collection
- */
- public function getTemplate(): Collection
- {
- return $this->template;
- }
-
public function addTemplate(PrestashopItem $template): self
{
- $this->template->add($template);
-
- return $this;
- }
-
- public function removeTemplate(PrestashopItem $template): self
- {
- $this->template->removeElement($template);
+ $this->template[] = $template;
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function isUnremovable(): ?bool
- {
- return $this->unremovable;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setUnremovable(?bool $unremovable): self
{
$this->unremovable = $unremovable;
-
return $this;
}
- public function isDelivery(): ?bool
- {
- return $this->delivery;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setDelivery(?bool $delivery): self
{
$this->delivery = $delivery;
-
return $this;
}
- public function isHidden(): ?bool
- {
- return $this->hidden;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setHidden(?bool $hidden): self
{
$this->hidden = $hidden;
-
return $this;
}
- public function isSendEmail(): ?bool
- {
- return $this->sendEmail;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setSendEmail(?bool $sendEmail): self
{
$this->sendEmail = $sendEmail;
-
return $this;
}
- public function getModuleName(): ?string
- {
- return $this->moduleName;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setModuleName(?string $moduleName): self
{
$this->moduleName = $moduleName;
-
return $this;
}
- public function isInvoice(): ?bool
- {
- return $this->invoice;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setInvoice(?bool $invoice): self
{
$this->invoice = $invoice;
-
return $this;
}
- public function getColor(): ?string
- {
- return $this->color;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setColor(?string $color): self
{
$this->color = $color;
-
return $this;
}
- public function isLogable(): ?bool
- {
- return $this->logable;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setLogable(?bool $logable): self
{
$this->logable = $logable;
-
return $this;
}
- public function isShipped(): ?bool
- {
- return $this->shipped;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setShipped(?bool $shipped): self
{
$this->shipped = $shipped;
-
return $this;
}
- public function isPaid(): ?bool
- {
- return $this->paid;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setPaid(?bool $paid): self
{
$this->paid = $paid;
-
return $this;
}
- public function isPdfDelivery(): ?bool
- {
- return $this->pdfDelivery;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setPdfDelivery(?bool $pdfDelivery): self
{
$this->pdfDelivery = $pdfDelivery;
-
return $this;
}
- public function isPdfInvoice(): ?bool
- {
- return $this->pdfInvoice;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setPdfInvoice(?bool $pdfInvoice): self
{
$this->pdfInvoice = $pdfInvoice;
-
return $this;
}
- public function isDeleted(): ?bool
- {
- return $this->deleted;
- }
-
- /**
- * @return PrestashopOrderState
- */
public function setDeleted(?bool $deleted): self
{
$this->deleted = $deleted;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopOrderStates.php b/src/Entity/PrestashopOrderStates.php
index 1fd6a80..6cd4216 100644
--- a/src/Entity/PrestashopOrderStates.php
+++ b/src/Entity/PrestashopOrderStates.php
@@ -1,38 +1,15 @@
- */
- private Collection $orderStates;
-
- public function __construct()
- {
- $this->orderStates = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getOrderStates(): Collection
- {
- return $this->orderStates;
- }
+ /** @var array */
+ public array $orderStates = [];
public function addOrderState(PrestashopOrderState $orderState): self
{
- $this->orderStates->add($orderState);
-
- return $this;
- }
-
- public function removeOrderState(PrestashopOrderState $orderState): self
- {
- $this->orderStates->removeElement($orderState);
+ $this->orderStates[] = $orderState;
return $this;
}
diff --git a/src/Entity/PrestashopOrders.php b/src/Entity/PrestashopOrders.php
index 440eff3..f83aad4 100644
--- a/src/Entity/PrestashopOrders.php
+++ b/src/Entity/PrestashopOrders.php
@@ -1,38 +1,15 @@
- */
- private Collection $orders;
-
- public function __construct()
- {
- $this->orders = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getOrders(): Collection
- {
- return $this->orders;
- }
+ /** @var array */
+ public array $orders = [];
public function addOrder(PrestashopOrder $order): self
{
- $this->orders->add($order);
-
- return $this;
- }
-
- public function removeOrder(PrestashopOrder $order): self
- {
- $this->orders->removeElement($order);
+ $this->orders[] = $order;
return $this;
}
diff --git a/src/Entity/PrestashopPost.php b/src/Entity/PrestashopPost.php
index 8fb6fca..bb23d8d 100644
--- a/src/Entity/PrestashopPost.php
+++ b/src/Entity/PrestashopPost.php
@@ -1,34 +1,21 @@
-orderHistory;
- }
+ public ?PrestashopOrderHistory $orderHistory = null;
+ public ?PrestashopStockAvailable $stockAvailable = null;
public function setOrderHistory(?PrestashopOrderHistory $orderHistory): self
{
$this->orderHistory = $orderHistory;
-
return $this;
}
- public function getStockAvailable(): ?PrestashopStockAvailable
- {
- return $this->stockAvailable;
- }
-
public function setStockAvailable(?PrestashopStockAvailable $stockAvailable): self
{
$this->stockAvailable = $stockAvailable;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopProduct.php b/src/Entity/PrestashopProduct.php
index 68388e9..3155cd9 100644
--- a/src/Entity/PrestashopProduct.php
+++ b/src/Entity/PrestashopProduct.php
@@ -1,1097 +1,505 @@
- */
- private Collection $deliveryInStock;
-
- /** @var Collection */
- private Collection $deliveryOutStock;
-
- /** @var Collection */
- private Collection $metaDescription;
-
- /** @var Collection */
- private Collection $metaKeywords;
-
- /** @var Collection */
- private Collection $metaTitle;
-
- /** @var Collection */
- private Collection $linkRewrite;
-
- /** @var Collection */
- private Collection $name;
-
- /** @var Collection */
- private Collection $description;
-
- /** @var Collection */
- private Collection $descriptionShort;
-
- /** @var Collection */
- private Collection $availableNow;
-
- /** @var Collection */
- private Collection $availableLater;
-
- private PrestashopAssociations $associations;
-
- private ?int $id = null;
-
- private ?int $idManufacturer = null;
-
- private ?int $idSupplier = null;
-
- private ?int $idCategoryDefault = null;
-
- private ?string $new = null;
-
- private ?int $cacheDefaultAttribute = null;
-
- private ?string $idDefaultImage = null;
-
- private ?int $idDefaultCombination = null;
-
- private ?int $idTaxRulesGroup = null;
-
- private ?string $positionInCategory = null;
-
- private ?string $manufacturerName = null;
-
- private ?int $quantity = null;
-
- private ?string $type = null;
-
- private ?int $idShopDefault = null;
-
- private ?string $reference = null;
-
- private ?string $supplierReference = null;
-
- private ?string $location = null;
-
- private ?float $width = null;
-
- private ?float $height = null;
-
- private ?float $depth = null;
-
- private ?float $weight = null;
-
- private ?bool $quantityDiscount = null;
-
- private ?string $isbn = null;
-
- private ?string $upc = null;
-
- private ?bool $cacheIsPack = null;
-
- private ?bool $cacheHasAttachments = null;
-
- private ?bool $isVirtual = null;
-
- private ?int $state = null;
-
- private ?int $additionalDeliveryTimes = null;
-
- private ?bool $onSale = null;
-
- private ?bool $onlineOnly = null;
-
- private ?float $ecotax = null;
-
- private ?int $minimalQuantity = null;
-
- private ?float $price = null;
-
- private ?float $wholesalePrice = null;
-
- private ?string $unity = null;
-
- private ?string $unitPriceRatio = null;
-
- private ?float $additionalShippingCost = null;
-
- private ?int $customizable = null;
-
- private ?int $textFields = null;
-
- private ?int $uploadableFiles = null;
-
- private ?bool $active = null;
-
- private ?string $redirectType = null;
-
- private ?int $idTypeRedirected = null;
-
- private ?bool $availableForOrder = null;
-
- private ?\DateTimeInterface $availableDate = null;
-
- private ?bool $showCondition = null;
-
- private ?string $condition = null;
-
- private ?bool $showPrice = null;
-
- private ?bool $indexed = null;
-
- private ?string $visibility = null;
-
- private ?bool $advancedStockManagement = null;
-
- private ?\DateTimeInterface $dateAdd = null;
-
- private ?\DateTimeInterface $dateUpd = null;
-
- private ?int $packStockType = null;
-
- public function __construct()
- {
- $this->deliveryInStock = new ArrayCollection();
- $this->deliveryOutStock = new ArrayCollection();
- $this->metaDescription = new ArrayCollection();
- $this->metaKeywords = new ArrayCollection();
- $this->metaTitle = new ArrayCollection();
- $this->linkRewrite = new ArrayCollection();
- $this->name = new ArrayCollection();
- $this->description = new ArrayCollection();
- $this->descriptionShort = new ArrayCollection();
- $this->availableNow = new ArrayCollection();
- $this->availableLater = new ArrayCollection();
- }
-
- public function getEan13(): ?string
- {
- return $this->ean13;
- }
-
- public function setEan13(?string $ean13): self
- {
- $this->ean13 = $ean13;
-
- return $this;
- }
-
- /**
- * @return Collection
- */
- public function getDeliveryInStock(): Collection
- {
- return $this->deliveryInStock;
- }
+ public ?string $ean13;
+ /** @var array */
+ public array $deliveryInStock = [];
+ /** @var array */
+ public array $deliveryOutStock = [];
+ /** @var array */
+ public array $metaDescription = [];
+ /** @var array */
+ public array $metaKeywords = [];
+ /** @var array */
+ public array $metaTitle = [];
+ /** @var array */
+ public array $linkRewrite = [];
+ /** @var array */
+ public array $name = [];
+ /** @var array */
+ public array $description = [];
+ /** @var array */
+ public array $descriptionShort = [];
+ /** @var array */
+ public array $availableNow = [];
+ /** @var array */
+ public array $availableLater = [];
+ public PrestashopAssociations $associations;
+ public ?int $id = null;
+ public ?int $idManufacturer = null;
+ public ?int $idSupplier = null;
+ public ?int $idCategoryDefault = null;
+ public ?string $new = null;
+ public ?int $cacheDefaultAttribute = null;
+ public ?string $idDefaultImage = null;
+ public ?int $idDefaultCombination = null;
+ public ?int $idTaxRulesGroup = null;
+ public ?string $positionInCategory = null;
+ public ?string $manufacturerName = null;
+ public ?int $quantity = null;
+ public ?string $type = null;
+ public ?int $idShopDefault = null;
+ public ?string $reference = null;
+ public ?string $supplierReference = null;
+ public ?string $location = null;
+ public ?float $width = null;
+ public ?float $height = null;
+ public ?float $depth = null;
+ public ?float $weight = null;
+ public ?bool $quantityDiscount = null;
+ public ?string $isbn = null;
+ public ?string $upc = null;
+ public ?bool $cacheIsPack = null;
+ public ?bool $cacheHasAttachments = null;
+ public ?bool $isVirtual = null;
+ public ?int $state = null;
+ public ?int $additionalDeliveryTimes = null;
+ public ?bool $onSale = null;
+ public ?bool $onlineOnly = null;
+ public ?float $ecotax = null;
+ public ?int $minimalQuantity = null;
+ public ?float $price = null;
+ public ?float $wholesalePrice = null;
+ public ?string $unity = null;
+ public ?string $unitPriceRatio = null;
+ public ?float $additionalShippingCost = null;
+ public ?int $customizable = null;
+ public ?int $textFields = null;
+ public ?int $uploadableFiles = null;
+ public ?bool $active = null;
+ public ?string $redirectType = null;
+ public ?int $idTypeRedirected = null;
+ public ?bool $availableForOrder = null;
+ public ?\DateTimeInterface $availableDate = null;
+ public ?bool $showCondition = null;
+ public ?string $condition = null;
+ public ?bool $showPrice = null;
+ public ?bool $indexed = null;
+ public ?string $visibility = null;
+ public ?bool $advancedStockManagement = null;
+ public ?\DateTimeInterface $dateAdd = null;
+ public ?\DateTimeInterface $dateUpd = null;
+ public ?int $packStockType = null;
public function addDeliveryInStock(PrestashopItem $deliveryInStock): self
{
- $this->deliveryInStock->add($deliveryInStock);
-
- return $this;
- }
-
- public function removeDeliveryInStock(PrestashopItem $deliveryInStock): self
- {
- $this->deliveryInStock->removeElement($deliveryInStock);
+ $this->deliveryInStock[] = $deliveryInStock;
return $this;
}
- /**
- * @return Collection
- */
- public function getDeliveryOutStock(): Collection
- {
- return $this->deliveryOutStock;
- }
-
public function addDeliveryOutStock(PrestashopItem $deliveryOutStock): self
{
- $this->deliveryOutStock->add($deliveryOutStock);
+ $this->deliveryOutStock[] = $deliveryOutStock;
return $this;
}
- public function removeDeliveryOutStock(PrestashopItem $deliveryOutStock): self
- {
- $this->deliveryOutStock->removeElement($deliveryOutStock);
-
- return $this;
- }
-
- /**
- * @return Collection
- */
- public function getMetaDescription(): Collection
- {
- return $this->metaDescription;
- }
-
public function addMetaDescription(PrestashopItem $metaDescription): self
{
- $this->metaDescription->add($metaDescription);
-
- return $this;
- }
-
- public function removeMetaDescription(PrestashopItem $metaDescription): self
- {
- $this->metaDescription->removeElement($metaDescription);
+ $this->metaDescription[] = $metaDescription;
return $this;
}
- /**
- * @return Collection
- */
- public function getMetaKeywords(): Collection
- {
- return $this->metaKeywords;
- }
-
public function addMetaKeyword(PrestashopItem $metaKeyword): self
{
- $this->metaKeywords->add($metaKeyword);
+ $this->metaKeywords[] = $metaKeyword;
return $this;
}
- public function removeMetaKeyword(PrestashopItem $metaKeyword): self
- {
- $this->metaKeywords->removeElement($metaKeyword);
-
- return $this;
- }
-
- /**
- * @return Collection
- */
- public function getMetaTitle(): Collection
- {
- return $this->metaTitle;
- }
-
public function addMetaTitle(PrestashopItem $metaTitle): self
{
- $this->metaTitle->add($metaTitle);
-
- return $this;
- }
-
- public function removeMetaTitle(PrestashopItem $metaTitle): self
- {
- $this->metaTitle->removeElement($metaTitle);
+ $this->metaTitle[] = $metaTitle;
return $this;
}
- /**
- * @return Collection
- */
- public function getLinkRewrite(): Collection
- {
- return $this->linkRewrite;
- }
-
public function addLinkRewrite(PrestashopItem $linkRewrite): self
{
- $this->linkRewrite->add($linkRewrite);
-
- return $this;
- }
-
- public function removeLinkRewrite(PrestashopItem $linkRewrite): self
- {
- $this->linkRewrite->removeElement($linkRewrite);
+ $this->linkRewrite[] = $linkRewrite;
return $this;
}
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
-
public function addName(PrestashopItem $name): self
{
- $this->name->add($name);
-
- return $this;
- }
-
- public function removeName(PrestashopItem $name): self
- {
- $this->name->removeElement($name);
+ $this->name[] = $name;
return $this;
}
- /**
- * @return Collection
- */
- public function getDescription(): Collection
- {
- return $this->description;
- }
-
public function addDescription(PrestashopItem $description): self
{
- $this->description->add($description);
-
- return $this;
- }
-
- public function removeDescription(PrestashopItem $description): self
- {
- $this->description->removeElement($description);
+ $this->description[] = $description;
return $this;
}
- /**
- * @return Collection
- */
- public function getDescriptionShort(): Collection
- {
- return $this->descriptionShort;
- }
-
public function addDescriptionShort(PrestashopItem $descriptionShort): self
{
- $this->descriptionShort->add($descriptionShort);
+ $this->descriptionShort[] = $descriptionShort;
return $this;
}
- public function removeDescriptionShort(PrestashopItem $descriptionShort): self
- {
- $this->descriptionShort->removeElement($descriptionShort);
-
- return $this;
- }
-
- /**
- * @return Collection
- */
- public function getAvailableNow(): Collection
- {
- return $this->availableNow;
- }
-
public function addAvailableNow(PrestashopItem $availableNow): self
{
- $this->availableNow->add($availableNow);
+ $this->availableNow[] = $availableNow;
return $this;
}
- public function removeAvailableNow(PrestashopItem $availableNow): self
- {
- $this->availableNow->removeElement($availableNow);
-
- return $this;
- }
-
- /**
- * @return Collection
- */
- public function getAvailableLater(): Collection
- {
- return $this->availableLater;
- }
-
public function addAvailableLater(PrestashopItem $availableLater): self
{
- $this->availableLater->add($availableLater);
+ $this->availableLater[] = $availableLater;
return $this;
}
- public function removeAvailableLater(PrestashopItem $availableLater): self
+ public function setEan13(?string $ean13): self
{
- $this->availableLater->removeElement($availableLater);
-
+ $this->ean13 = $ean13;
return $this;
}
- public function getAssociations(): PrestashopAssociations
- {
- return $this->associations;
- }
-
public function setAssociations(PrestashopAssociations $associations): self
{
$this->associations = $associations;
-
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdManufacturer(): ?int
- {
- return $this->idManufacturer;
- }
-
public function setIdManufacturer(?int $idManufacturer): self
{
$this->idManufacturer = $idManufacturer;
-
return $this;
}
- public function getIdSupplier(): ?int
- {
- return $this->idSupplier;
- }
-
public function setIdSupplier(?int $idSupplier): self
{
$this->idSupplier = $idSupplier;
-
return $this;
}
- public function getIdCategoryDefault(): ?int
- {
- return $this->idCategoryDefault;
- }
-
public function setIdCategoryDefault(?int $idCategoryDefault): self
{
$this->idCategoryDefault = $idCategoryDefault;
-
return $this;
}
- public function getNew(): ?string
- {
- return $this->new;
- }
-
public function setNew(?string $new): self
{
$this->new = $new;
-
return $this;
}
- public function getCacheDefaultAttribute(): ?int
- {
- return $this->cacheDefaultAttribute;
- }
-
public function setCacheDefaultAttribute(?int $cacheDefaultAttribute): self
{
$this->cacheDefaultAttribute = $cacheDefaultAttribute;
-
return $this;
}
- public function getIdDefaultImage(): ?string
- {
- return $this->idDefaultImage;
- }
-
public function setIdDefaultImage(?string $idDefaultImage): self
{
$this->idDefaultImage = $idDefaultImage;
-
return $this;
}
- public function getIdDefaultCombination(): ?int
- {
- return $this->idDefaultCombination;
- }
-
public function setIdDefaultCombination(?int $idDefaultCombination): self
{
$this->idDefaultCombination = $idDefaultCombination;
-
return $this;
}
- public function getIdTaxRulesGroup(): ?int
- {
- return $this->idTaxRulesGroup;
- }
-
public function setIdTaxRulesGroup(?int $idTaxRulesGroup): self
{
$this->idTaxRulesGroup = $idTaxRulesGroup;
-
return $this;
}
- public function getPositionInCategory(): ?string
- {
- return $this->positionInCategory;
- }
-
public function setPositionInCategory(?string $positionInCategory): self
{
$this->positionInCategory = $positionInCategory;
-
return $this;
}
- public function getManufacturerName(): ?string
- {
- return $this->manufacturerName;
- }
-
public function setManufacturerName(?string $manufacturerName): self
{
$this->manufacturerName = $manufacturerName;
-
return $this;
}
- public function getQuantity(): ?int
- {
- return $this->quantity;
- }
-
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
-
return $this;
}
- public function getType(): ?string
- {
- return $this->type;
- }
-
public function setType(?string $type): self
{
$this->type = $type;
-
return $this;
}
- public function getIdShopDefault(): ?int
- {
- return $this->idShopDefault;
- }
-
public function setIdShopDefault(?int $idShopDefault): self
{
$this->idShopDefault = $idShopDefault;
-
return $this;
}
- public function getReference(): ?string
- {
- return $this->reference;
- }
-
public function setReference(?string $reference): self
{
$this->reference = $reference;
-
return $this;
}
- public function getSupplierReference(): ?string
- {
- return $this->supplierReference;
- }
-
public function setSupplierReference(?string $supplierReference): self
{
$this->supplierReference = $supplierReference;
-
return $this;
}
- public function getLocation(): ?string
- {
- return $this->location;
- }
-
public function setLocation(?string $location): self
{
$this->location = $location;
-
return $this;
}
- public function getWidth(): ?float
- {
- return $this->width;
- }
-
public function setWidth(?float $width): self
{
$this->width = $width;
-
return $this;
}
- public function getHeight(): ?float
- {
- return $this->height;
- }
-
public function setHeight(?float $height): self
{
$this->height = $height;
-
return $this;
}
- public function getDepth(): ?float
- {
- return $this->depth;
- }
-
public function setDepth(?float $depth): self
{
$this->depth = $depth;
-
return $this;
}
- public function getWeight(): ?float
- {
- return $this->weight;
- }
-
public function setWeight(?float $weight): self
{
$this->weight = $weight;
-
return $this;
}
- public function getQuantityDiscount(): ?bool
- {
- return $this->quantityDiscount;
- }
-
public function setQuantityDiscount(?bool $quantityDiscount): self
{
$this->quantityDiscount = $quantityDiscount;
-
return $this;
}
- public function getIsbn(): ?string
- {
- return $this->isbn;
- }
-
public function setIsbn(?string $isbn): self
{
$this->isbn = $isbn;
-
return $this;
}
- public function getUpc(): ?string
- {
- return $this->upc;
- }
-
public function setUpc(?string $upc): self
{
$this->upc = $upc;
-
return $this;
}
- public function getCacheIsPack(): ?bool
- {
- return $this->cacheIsPack;
- }
-
public function setCacheIsPack(?bool $cacheIsPack): self
{
$this->cacheIsPack = $cacheIsPack;
-
return $this;
}
- public function getCacheHasAttachments(): ?bool
- {
- return $this->cacheHasAttachments;
- }
-
public function setCacheHasAttachments(?bool $cacheHasAttachments): self
{
$this->cacheHasAttachments = $cacheHasAttachments;
-
return $this;
}
- public function getIsVirtual(): ?bool
- {
- return $this->isVirtual;
- }
-
public function setIsVirtual(?bool $isVirtual): self
{
$this->isVirtual = $isVirtual;
-
return $this;
}
- public function getState(): ?int
- {
- return $this->state;
- }
-
public function setState(?int $state): self
{
$this->state = $state;
-
return $this;
}
- public function getAdditionalDeliveryTimes(): ?int
- {
- return $this->additionalDeliveryTimes;
- }
-
public function setAdditionalDeliveryTimes(?int $additionalDeliveryTimes): self
{
$this->additionalDeliveryTimes = $additionalDeliveryTimes;
-
return $this;
}
- public function getOnSale(): ?bool
- {
- return $this->onSale;
- }
-
public function setOnSale(?bool $onSale): self
{
$this->onSale = $onSale;
-
return $this;
}
- public function getOnlineOnly(): ?bool
- {
- return $this->onlineOnly;
- }
-
public function setOnlineOnly(?bool $onlineOnly): self
{
$this->onlineOnly = $onlineOnly;
-
return $this;
}
- public function getEcotax(): ?float
- {
- return $this->ecotax;
- }
-
public function setEcotax(?float $ecotax): self
{
$this->ecotax = $ecotax;
-
return $this;
}
- public function getMinimalQuantity(): ?int
- {
- return $this->minimalQuantity;
- }
-
public function setMinimalQuantity(?int $minimalQuantity): self
{
$this->minimalQuantity = $minimalQuantity;
-
return $this;
}
- public function getPrice(): ?float
- {
- return $this->price;
- }
-
public function setPrice(?float $price): self
{
$this->price = $price;
-
return $this;
}
- public function getWholesalePrice(): ?float
- {
- return $this->wholesalePrice;
- }
-
public function setWholesalePrice(?float $wholesalePrice): self
{
$this->wholesalePrice = $wholesalePrice;
-
return $this;
}
- public function getUnity(): ?string
- {
- return $this->unity;
- }
-
public function setUnity(?string $unity): self
{
$this->unity = $unity;
-
return $this;
}
- public function getUnitPriceRatio(): ?string
- {
- return $this->unitPriceRatio;
- }
-
public function setUnitPriceRatio(?string $unitPriceRatio): self
{
$this->unitPriceRatio = $unitPriceRatio;
-
return $this;
}
- public function getAdditionalShippingCost(): ?float
- {
- return $this->additionalShippingCost;
- }
-
public function setAdditionalShippingCost(?float $additionalShippingCost): self
{
$this->additionalShippingCost = $additionalShippingCost;
-
return $this;
}
- public function getCustomizable(): ?int
- {
- return $this->customizable;
- }
-
public function setCustomizable(?int $customizable): self
{
$this->customizable = $customizable;
-
return $this;
}
- public function getTextFields(): ?int
- {
- return $this->textFields;
- }
-
public function setTextFields(?int $textFields): self
{
$this->textFields = $textFields;
-
return $this;
}
- public function getUploadableFiles(): ?int
- {
- return $this->uploadableFiles;
- }
-
public function setUploadableFiles(?int $uploadableFiles): self
{
$this->uploadableFiles = $uploadableFiles;
-
return $this;
}
- public function getActive(): ?bool
- {
- return $this->active;
- }
-
public function setActive(?bool $active): self
{
$this->active = $active;
-
return $this;
}
- public function getRedirectType(): ?string
- {
- return $this->redirectType;
- }
-
public function setRedirectType(?string $redirectType): self
{
$this->redirectType = $redirectType;
-
return $this;
}
- public function getIdTypeRedirected(): ?int
- {
- return $this->idTypeRedirected;
- }
-
public function setIdTypeRedirected(?int $idTypeRedirected): self
{
$this->idTypeRedirected = $idTypeRedirected;
-
return $this;
}
- public function getAvailableForOrder(): ?bool
- {
- return $this->availableForOrder;
- }
-
public function setAvailableForOrder(?bool $availableForOrder): self
{
$this->availableForOrder = $availableForOrder;
-
return $this;
}
- public function getAvailableDate(): ?\DateTimeInterface
- {
- return $this->availableDate;
- }
-
public function setAvailableDate(?\DateTimeInterface $availableDate): self
{
$this->availableDate = $availableDate;
-
return $this;
}
- public function getShowCondition(): ?bool
- {
- return $this->showCondition;
- }
-
public function setShowCondition(?bool $showCondition): self
{
$this->showCondition = $showCondition;
-
return $this;
}
- public function getCondition(): ?string
- {
- return $this->condition;
- }
-
public function setCondition(?string $condition): self
{
$this->condition = $condition;
-
return $this;
}
- public function getShowPrice(): ?bool
- {
- return $this->showPrice;
- }
-
public function setShowPrice(?bool $showPrice): self
{
$this->showPrice = $showPrice;
-
return $this;
}
- public function getIndexed(): ?bool
- {
- return $this->indexed;
- }
-
public function setIndexed(?bool $indexed): self
{
$this->indexed = $indexed;
-
return $this;
}
- public function getVisibility(): ?string
- {
- return $this->visibility;
- }
-
public function setVisibility(?string $visibility): self
{
$this->visibility = $visibility;
-
return $this;
}
- public function getAdvancedStockManagement(): ?bool
- {
- return $this->advancedStockManagement;
- }
-
public function setAdvancedStockManagement(?bool $advancedStockManagement): self
{
$this->advancedStockManagement = $advancedStockManagement;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
- public function getDateUpd(): ?\DateTimeInterface
- {
- return $this->dateUpd;
- }
-
public function setDateUpd(?\DateTimeInterface $dateUpd): self
{
$this->dateUpd = $dateUpd;
-
return $this;
}
- public function getPackStockType(): ?int
- {
- return $this->packStockType;
- }
-
public function setPackStockType(?int $packStockType): self
{
$this->packStockType = $packStockType;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopProductBundle.php b/src/Entity/PrestashopProductBundle.php
index 3a4b267..ac49f1b 100644
--- a/src/Entity/PrestashopProductBundle.php
+++ b/src/Entity/PrestashopProductBundle.php
@@ -1,48 +1,28 @@
-id;
- }
+ public ?int $id = null;
+ public ?int $idProductAttribute = null;
+ public ?int $quantity = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdProductAttribute(): ?int
- {
- return $this->idProductAttribute;
- }
-
public function setIdProductAttribute(?int $idProductAttribute): self
{
$this->idProductAttribute = $idProductAttribute;
-
return $this;
}
- public function getQuantity(): ?int
- {
- return $this->quantity;
- }
-
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopProductFeature.php b/src/Entity/PrestashopProductFeature.php
index bb1464b..283811e 100644
--- a/src/Entity/PrestashopProductFeature.php
+++ b/src/Entity/PrestashopProductFeature.php
@@ -1,89 +1,18 @@
- */
- private Collection $name;
-
- private ?int $id = null;
-
- private ?int $idFeatureValue = null;
-
- private ?string $position = null;
-
- public function __construct()
- {
- $this->name = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
+ /** @var array */
+ public array $name = [];
+ public ?int $id = null;
+ public ?int $idFeatureValue = null;
+ public ?string $position = null;
public function addName(PrestashopItem $name): self
{
- $this->name->add($name);
-
- return $this;
- }
-
- public function removeName(PrestashopItem $name): self
- {
- $this->name->removeElement($name);
-
- return $this;
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
- /**
- * @return PrestashopProductFeature
- */
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function getIdFeatureValue(): ?int
- {
- return $this->idFeatureValue;
- }
-
- /**
- * @return PrestashopProductFeature
- */
- public function setIdFeatureValue(?int $idFeatureValue): self
- {
- $this->idFeatureValue = $idFeatureValue;
-
- return $this;
- }
-
- public function getPosition(): ?string
- {
- return $this->position;
- }
-
- /**
- * @return PrestashopProductFeature
- */
- public function setPosition(?string $position): self
- {
- $this->position = $position;
+ $this->name[] = $name;
return $this;
}
diff --git a/src/Entity/PrestashopProductFeatureValue.php b/src/Entity/PrestashopProductFeatureValue.php
index ee35dae..05dfc4c 100644
--- a/src/Entity/PrestashopProductFeatureValue.php
+++ b/src/Entity/PrestashopProductFeatureValue.php
@@ -1,81 +1,37 @@
- */
- private Collection $value;
-
- private ?int $id = null;
-
- private ?string $idFeature = null;
-
- private ?bool $custom = null;
-
- public function __construct()
- {
- $this->value = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getValue(): Collection
- {
- return $this->value;
- }
+ /** @var array */
+ public array $value = [];
+ public ?int $id = null;
+ public ?string $idFeature = null;
+ public ?bool $custom = null;
public function addValue(PrestashopItem $value): self
{
- $this->value->add($value);
+ $this->value[] = $value;
return $this;
}
- public function removeValue(PrestashopItem $value): self
- {
- $this->value->removeElement($value);
-
- return $this;
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdFeature(): ?string
- {
- return $this->idFeature;
- }
-
public function setIdFeature(?string $idFeature): self
{
$this->idFeature = $idFeature;
-
return $this;
}
- public function getCustom(): ?bool
- {
- return $this->custom;
- }
-
public function setCustom(?bool $custom): self
{
$this->custom = $custom;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopProductFeatureValues.php b/src/Entity/PrestashopProductFeatureValues.php
index 7a52602..db9b157 100644
--- a/src/Entity/PrestashopProductFeatureValues.php
+++ b/src/Entity/PrestashopProductFeatureValues.php
@@ -1,38 +1,15 @@
- */
- private Collection $productFeatureValues;
-
- public function __construct()
- {
- $this->productFeatureValues = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getProductFeatureValues(): Collection
- {
- return $this->productFeatureValues;
- }
+ /** @var array */
+ public array $productFeatureValues = [];
public function addProductFeatureValue(PrestashopProductFeatureValue $productFeatureValue): self
{
- $this->productFeatureValues->add($productFeatureValue);
-
- return $this;
- }
-
- public function removeProductFeatureValue(PrestashopProductFeatureValue $productFeatureValue): self
- {
- $this->productFeatureValues->removeElement($productFeatureValue);
+ $this->productFeatureValues[] = $productFeatureValue;
return $this;
}
diff --git a/src/Entity/PrestashopProductFeatures.php b/src/Entity/PrestashopProductFeatures.php
index 63fbaad..f8a098d 100644
--- a/src/Entity/PrestashopProductFeatures.php
+++ b/src/Entity/PrestashopProductFeatures.php
@@ -1,38 +1,15 @@
- */
- private Collection $productFeatures;
-
- public function __construct()
- {
- $this->productFeatures = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getProductFeatures(): Collection
- {
- return $this->productFeatures;
- }
+ /** @var array */
+ public array $productFeatures = [];
public function addProductFeature(PrestashopProductFeature $productFeature): self
{
- $this->productFeatures->add($productFeature);
-
- return $this;
- }
-
- public function removeProductFeature(PrestashopProductFeature $productFeature): self
- {
- $this->productFeatures->removeElement($productFeature);
+ $this->productFeatures[] = $productFeature;
return $this;
}
diff --git a/src/Entity/PrestashopProductOption.php b/src/Entity/PrestashopProductOption.php
index 5685571..c4e6495 100644
--- a/src/Entity/PrestashopProductOption.php
+++ b/src/Entity/PrestashopProductOption.php
@@ -1,135 +1,60 @@
- */
- private Collection $name;
-
- /** @var Collection */
- private Collection $publicName;
-
- private ?int $id = null;
-
- private ?bool $isColorGroup = null;
-
- private ?string $groupType = null;
-
- private ?int $position = null;
-
- private ?PrestashopAssociations $associations = null;
-
- public function __construct()
- {
- $this->name = new ArrayCollection();
- $this->publicName = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
+ /** @var array */
+ public array $name = [];
+ /** @var array */
+ public array $publicName = [];
+ public ?int $id = null;
+ public ?bool $isColorGroup = null;
+ public ?string $groupType = null;
+ public ?int $position = null;
+ public ?PrestashopAssociations $associations = null;
public function addName(PrestashopItem $name): self
{
- $this->name->add($name);
-
- return $this;
- }
-
- public function removeName(PrestashopItem $name): self
- {
- $this->name->removeElement($name);
+ $this->name[] = $name;
return $this;
}
- /**
- * @return Collection
- */
- public function getPublicName(): Collection
- {
- return $this->publicName;
- }
-
public function addPublicName(PrestashopItem $publicName): self
{
- $this->publicName->add($publicName);
-
- return $this;
- }
-
- public function removePublicName(PrestashopItem $publicName): self
- {
- $this->publicName->removeElement($publicName);
+ $this->publicName[] = $publicName;
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIsColorGroup(): ?bool
- {
- return $this->isColorGroup;
- }
-
public function setIsColorGroup(?bool $isColorGroup): self
{
$this->isColorGroup = $isColorGroup;
-
return $this;
}
- public function getGroupType(): ?string
- {
- return $this->groupType;
- }
-
public function setGroupType(?string $groupType): self
{
$this->groupType = $groupType;
-
return $this;
}
- public function getPosition(): ?int
- {
- return $this->position;
- }
-
public function setPosition(?int $position): self
{
$this->position = $position;
-
return $this;
}
- public function getAssociations(): ?PrestashopAssociations
- {
- return $this->associations;
- }
-
public function setAssociations(?PrestashopAssociations $associations): self
{
$this->associations = $associations;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopProductOptionValue.php b/src/Entity/PrestashopProductOptionValue.php
index a1f5491..31c530a 100644
--- a/src/Entity/PrestashopProductOptionValue.php
+++ b/src/Entity/PrestashopProductOptionValue.php
@@ -1,107 +1,44 @@
- */
- private Collection $name;
-
- private ?int $id = null;
-
- private ?int $idAttributeGroup = null;
-
- private ?string $color = null;
-
- private ?int $position = null;
-
- public function __construct()
- {
- $this->name = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getName(): Collection
- {
- return $this->name;
- }
+ /** @var array */
+ public array $name = [];
+ public ?int $id = null;
+ public ?int $idAttributeGroup = null;
+ public ?string $color = null;
+ public ?int $position = null;
public function addName(PrestashopItem $name): self
{
- $this->name->add($name);
-
- return $this;
- }
-
- public function removeName(PrestashopItem $name): self
- {
- $this->name->removeElement($name);
+ $this->name[] = $name;
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
- /**
- * @return PrestashopProductOptionValue
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdAttributeGroup(): ?int
- {
- return $this->idAttributeGroup;
- }
-
- /**
- * @return PrestashopProductOptionValue
- */
public function setIdAttributeGroup(?int $idAttributeGroup): self
{
$this->idAttributeGroup = $idAttributeGroup;
-
return $this;
}
- public function getColor(): ?string
- {
- return $this->color;
- }
-
- /**
- * @return PrestashopProductOptionValue
- */
public function setColor(?string $color): self
{
$this->color = $color;
-
return $this;
}
- public function getPosition(): ?int
- {
- return $this->position;
- }
-
- /**
- * @return PrestashopProductOptionValue
- */
public function setPosition(?int $position): self
{
$this->position = $position;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopProductOptionValues.php b/src/Entity/PrestashopProductOptionValues.php
index 2ec4821..d21af0b 100644
--- a/src/Entity/PrestashopProductOptionValues.php
+++ b/src/Entity/PrestashopProductOptionValues.php
@@ -1,38 +1,15 @@
- */
- private Collection $productOptionValues;
-
- public function __construct()
- {
- $this->productOptionValues = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getProductOptionValues(): Collection
- {
- return $this->productOptionValues;
- }
+ /** @var array */
+ public array $productOptionValues = [];
public function addProductOptionValue(PrestashopProductOptionValue $productOptionValue): self
{
- $this->productOptionValues->add($productOptionValue);
-
- return $this;
- }
-
- public function removeProductOptionValue(PrestashopProductOptionValue $productOptionValue): self
- {
- $this->productOptionValues->removeElement($productOptionValue);
+ $this->productOptionValues[] = $productOptionValue;
return $this;
}
diff --git a/src/Entity/PrestashopProductOptions.php b/src/Entity/PrestashopProductOptions.php
index 0fa244e..76f2ad2 100644
--- a/src/Entity/PrestashopProductOptions.php
+++ b/src/Entity/PrestashopProductOptions.php
@@ -1,38 +1,15 @@
- */
- private Collection $productOptions;
-
- public function __construct()
- {
- $this->productOptions = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getProductOptions(): Collection
- {
- return $this->productOptions;
- }
+ /** @var array */
+ public array $productOptions = [];
public function addProductOption(PrestashopProductOption $productOption): self
{
- $this->productOptions->add($productOption);
-
- return $this;
- }
-
- public function removeProductOption(PrestashopProductOption $productOption): self
- {
- $this->productOptions->removeElement($productOption);
+ $this->productOptions[] = $productOption;
return $this;
}
diff --git a/src/Entity/PrestashopProducts.php b/src/Entity/PrestashopProducts.php
index 636acbe..971fb2e 100644
--- a/src/Entity/PrestashopProducts.php
+++ b/src/Entity/PrestashopProducts.php
@@ -1,38 +1,15 @@
- */
- private Collection $products;
-
- public function __construct()
- {
- $this->products = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getProducts(): Collection
- {
- return $this->products;
- }
+ /** @var array */
+ public array $products = [];
public function addProduct(PrestashopProduct $product): self
{
- $this->products->add($product);
-
- return $this;
- }
-
- public function removeProduct(PrestashopProduct $product): self
- {
- $this->products->removeElement($product);
+ $this->products[] = $product;
return $this;
}
diff --git a/src/Entity/PrestashopPut.php b/src/Entity/PrestashopPut.php
index ab3cad1..2d3b52e 100644
--- a/src/Entity/PrestashopPut.php
+++ b/src/Entity/PrestashopPut.php
@@ -1,48 +1,28 @@
-orderCarrier;
- }
+ public ?PrestashopOrderCarrier $orderCarrier = null;
+ public ?PrestashopOrderHistory $orderHistory = null;
+ public ?PrestashopStockAvailable $stockAvailable = null;
public function setOrderCarrier(?PrestashopOrderCarrier $orderCarrier): self
{
$this->orderCarrier = $orderCarrier;
-
return $this;
}
- public function getOrderHistory(): ?PrestashopOrderHistory
- {
- return $this->orderHistory;
- }
-
public function setOrderHistory(?PrestashopOrderHistory $orderHistory): self
{
$this->orderHistory = $orderHistory;
-
return $this;
}
- public function getStockAvailable(): ?PrestashopStockAvailable
- {
- return $this->stockAvailable;
- }
-
public function setStockAvailable(?PrestashopStockAvailable $stockAvailable): self
{
$this->stockAvailable = $stockAvailable;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopState.php b/src/Entity/PrestashopState.php
index d2a863c..9bebebf 100644
--- a/src/Entity/PrestashopState.php
+++ b/src/Entity/PrestashopState.php
@@ -1,90 +1,49 @@
-id;
- }
+ public ?int $id = null;
+ public ?int $idZone = null;
+ public ?int $idCountry = null;
+ public ?string $isoCode = null;
+ public ?string $name = null;
+ public ?bool $active = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdZone(): ?int
- {
- return $this->idZone;
- }
-
public function setIdZone(?int $idZone): self
{
$this->idZone = $idZone;
-
return $this;
}
- public function getIdCountry(): ?int
- {
- return $this->idCountry;
- }
-
public function setIdCountry(?int $idCountry): self
{
$this->idCountry = $idCountry;
-
return $this;
}
- public function getIsoCode(): ?string
- {
- return $this->isoCode;
- }
-
public function setIsoCode(?string $isoCode): self
{
$this->isoCode = $isoCode;
-
return $this;
}
- public function getName(): ?string
- {
- return $this->name;
- }
-
public function setName(?string $name): self
{
$this->name = $name;
-
return $this;
}
- public function getActive(): ?bool
- {
- return $this->active;
- }
-
public function setActive(?bool $active): self
{
$this->active = $active;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopStates.php b/src/Entity/PrestashopStates.php
index b13538a..a4a1b16 100644
--- a/src/Entity/PrestashopStates.php
+++ b/src/Entity/PrestashopStates.php
@@ -1,38 +1,15 @@
- */
- private Collection $states;
-
- public function __construct()
- {
- $this->states = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getStates(): Collection
- {
- return $this->states;
- }
+ /** @var array */
+ public array $states = [];
public function addState(PrestashopState $state): self
{
- $this->states->add($state);
-
- return $this;
- }
-
- public function removeState(PrestashopState $state): self
- {
- $this->states->removeElement($state);
+ $this->states[] = $state;
return $this;
}
diff --git a/src/Entity/PrestashopStockAvailable.php b/src/Entity/PrestashopStockAvailable.php
index acbedeb..57611d9 100644
--- a/src/Entity/PrestashopStockAvailable.php
+++ b/src/Entity/PrestashopStockAvailable.php
@@ -1,118 +1,63 @@
-id;
- }
+ public ?int $id = null;
+ public ?int $idProduct = null;
+ public ?int $idProductAttribute = null;
+ public ?int $idShop = null;
+ public ?int $idShopGroup = null;
+ public ?int $quantity = null;
+ public ?int $dependsOnStock = null;
+ public ?int $outOfStock = null;
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdProduct(): ?int
- {
- return $this->idProduct;
- }
-
public function setIdProduct(?int $idProduct): self
{
$this->idProduct = $idProduct;
-
return $this;
}
- public function getIdProductAttribute(): ?int
- {
- return $this->idProductAttribute;
- }
-
public function setIdProductAttribute(?int $idProductAttribute): self
{
$this->idProductAttribute = $idProductAttribute;
-
return $this;
}
- public function getIdShop(): ?int
- {
- return $this->idShop;
- }
-
public function setIdShop(?int $idShop): self
{
$this->idShop = $idShop;
-
return $this;
}
- public function getIdShopGroup(): ?int
- {
- return $this->idShopGroup;
- }
-
public function setIdShopGroup(?int $idShopGroup): self
{
$this->idShopGroup = $idShopGroup;
-
return $this;
}
- public function getQuantity(): ?int
- {
- return $this->quantity;
- }
-
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
-
return $this;
}
- public function getDependsOnStock(): ?int
- {
- return $this->dependsOnStock;
- }
-
public function setDependsOnStock(?int $dependsOnStock): self
{
$this->dependsOnStock = $dependsOnStock;
-
return $this;
}
- public function getOutOfStock(): ?int
- {
- return $this->outOfStock;
- }
-
public function setOutOfStock(?int $outOfStock): self
{
$this->outOfStock = $outOfStock;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopStockAvailables.php b/src/Entity/PrestashopStockAvailables.php
index 73d7952..27fd63d 100644
--- a/src/Entity/PrestashopStockAvailables.php
+++ b/src/Entity/PrestashopStockAvailables.php
@@ -1,38 +1,15 @@
- */
- private Collection $stockAvailables;
-
- public function __construct()
- {
- $this->stockAvailables = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getStockAvailables(): Collection
- {
- return $this->stockAvailables;
- }
+ /** @var array */
+ public array $stockAvailables = [];
public function addStockAvailable(PrestashopStockAvailable $stockAvailable): self
{
- $this->stockAvailables->add($stockAvailable);
-
- return $this;
- }
-
- public function removeStockAvailable(PrestashopStockAvailable $stockAvailable): self
- {
- $this->stockAvailables->removeElement($stockAvailable);
+ $this->stockAvailables[] = $stockAvailable;
return $this;
}
diff --git a/src/Entity/PrestashopStockMovement.php b/src/Entity/PrestashopStockMovement.php
index 526ccb0..dcce195 100644
--- a/src/Entity/PrestashopStockMovement.php
+++ b/src/Entity/PrestashopStockMovement.php
@@ -1,363 +1,154 @@
-ean13;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setEan13(?string $ean13): self
{
$this->ean13 = $ean13;
-
return $this;
}
- public function getId(): ?int
- {
- return $this->id;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getIdProduct(): ?int
- {
- return $this->idProduct;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdProduct(?int $idProduct): self
{
$this->idProduct = $idProduct;
-
return $this;
}
- public function getIdProductAttribute(): ?int
- {
- return $this->idProductAttribute;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdProductAttribute(?int $idProductAttribute): self
{
$this->idProductAttribute = $idProductAttribute;
-
return $this;
}
- public function getIdWarehouse(): ?int
- {
- return $this->idWarehouse;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdWarehouse(?int $idWarehouse): self
{
$this->idWarehouse = $idWarehouse;
-
return $this;
}
- public function getIdCurrency(): ?int
- {
- return $this->idCurrency;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdCurrency(?int $idCurrency): self
{
$this->idCurrency = $idCurrency;
-
return $this;
}
- public function getManagementType(): ?string
- {
- return $this->managementType;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setManagementType(?string $managementType): self
{
$this->managementType = $managementType;
-
return $this;
}
- public function getIdEmployee(): ?int
- {
- return $this->idEmployee;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdEmployee(?int $idEmployee): self
{
$this->idEmployee = $idEmployee;
-
return $this;
}
- public function getIdStock(): ?int
- {
- return $this->idStock;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdStock(?int $idStock): self
{
$this->idStock = $idStock;
-
return $this;
}
- public function getIdStockMvtReason(): ?int
- {
- return $this->idStockMvtReason;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdStockMvtReason(?int $idStockMvtReason): self
{
$this->idStockMvtReason = $idStockMvtReason;
-
return $this;
}
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdOrder(?int $idOrder): self
{
$this->idOrder = $idOrder;
-
return $this;
}
- public function getIdSupplyOrder(): ?int
- {
- return $this->idSupplyOrder;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setIdSupplyOrder(?int $idSupplyOrder): self
{
$this->idSupplyOrder = $idSupplyOrder;
-
return $this;
}
- public function getProductName(): ?string
- {
- return $this->productName;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setProductName(?string $productName): self
{
$this->productName = $productName;
-
return $this;
}
- public function getUpc(): ?string
- {
- return $this->upc;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setUpc(?string $upc): self
{
$this->upc = $upc;
-
return $this;
}
- public function getReference(): ?string
- {
- return $this->reference;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setReference(?string $reference): self
{
$this->reference = $reference;
-
return $this;
}
- public function getPhysicalQuantity(): ?int
- {
- return $this->physicalQuantity;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setPhysicalQuantity(?int $physicalQuantity): self
{
$this->physicalQuantity = $physicalQuantity;
-
return $this;
}
- public function getSign(): ?bool
- {
- return $this->sign;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setSign(?bool $sign): self
{
$this->sign = $sign;
-
return $this;
}
- public function getLastWa(): ?float
- {
- return $this->lastWa;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setLastWa(?float $lastWa): self
{
$this->lastWa = $lastWa;
-
return $this;
}
- public function getCurrentWa(): ?float
- {
- return $this->currentWa;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setCurrentWa(?float $currentWa): self
{
$this->currentWa = $currentWa;
-
return $this;
}
- public function getPriceTe(): ?float
- {
- return $this->priceTe;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setPriceTe(?float $priceTe): self
{
$this->priceTe = $priceTe;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
- /**
- * @return PrestashopStockMovement
- */
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopStockMovementReason.php b/src/Entity/PrestashopStockMovementReason.php
index 1271eac..973bb71 100644
--- a/src/Entity/PrestashopStockMovementReason.php
+++ b/src/Entity/PrestashopStockMovementReason.php
@@ -1,108 +1,49 @@
-id;
- }
-
- /**
- * @return PrestashopStockMovementReason
- */
public function setId(?int $id): self
{
$this->id = $id;
-
return $this;
}
- public function getSign(): ?string
- {
- return $this->sign;
- }
-
- /**
- * @return PrestashopStockMovementReason
- */
public function setSign(?string $sign): self
{
$this->sign = $sign;
-
return $this;
}
- public function getDeleted(): ?int
- {
- return $this->deleted;
- }
-
- /**
- * @return PrestashopStockMovementReason
- */
public function setDeleted(?int $deleted): self
{
$this->deleted = $deleted;
-
return $this;
}
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
- /**
- * @return PrestashopStockMovementReason
- */
public function setDateAdd(?\DateTimeInterface $dateAdd): self
{
$this->dateAdd = $dateAdd;
-
return $this;
}
- public function getDateUpd(): ?\DateTimeInterface
- {
- return $this->dateUpd;
- }
-
- /**
- * @return PrestashopStockMovementReason
- */
public function setDateUpd(?\DateTimeInterface $dateUpd): self
{
$this->dateUpd = $dateUpd;
-
return $this;
}
- public function getName(): ?string
- {
- return $this->name;
- }
-
- /**
- * @return PrestashopStockMovementReason
- */
public function setName(?string $name): self
{
$this->name = $name;
-
return $this;
}
}
diff --git a/src/Entity/PrestashopStockMovementReasons.php b/src/Entity/PrestashopStockMovementReasons.php
index 8b55f0b..c2d0c25 100644
--- a/src/Entity/PrestashopStockMovementReasons.php
+++ b/src/Entity/PrestashopStockMovementReasons.php
@@ -1,38 +1,15 @@
- */
- private Collection $stockMovementReasons;
-
- public function __construct()
- {
- $this->stockMovementReasons = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getStockMovementReasons(): Collection
- {
- return $this->stockMovementReasons;
- }
+ /** @var array */
+ public array $stockMovementReasons = [];
public function addStockMovementReason(PrestashopStockMovementReason $stockMovementReason): self
{
- $this->stockMovementReasons->add($stockMovementReason);
-
- return $this;
- }
-
- public function removeStockMovementReason(PrestashopStockMovementReason $stockMovementReason): self
- {
- $this->stockMovementReasons->removeElement($stockMovementReason);
+ $this->stockMovementReasons[] = $stockMovementReason;
return $this;
}
diff --git a/src/Entity/PrestashopStockMovements.php b/src/Entity/PrestashopStockMovements.php
index 39048ea..145fb6e 100644
--- a/src/Entity/PrestashopStockMovements.php
+++ b/src/Entity/PrestashopStockMovements.php
@@ -1,38 +1,15 @@
- */
- private Collection $stockMovements;
-
- public function __construct()
- {
- $this->stockMovements = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getStockMovements(): Collection
- {
- return $this->stockMovements;
- }
+ /** @var array */
+ public array $stockMovements = [];
public function addStockMovement(PrestashopStockMovement $stockMovement): self
{
- $this->stockMovements->add($stockMovement);
-
- return $this;
- }
-
- public function removeStockMovement(PrestashopStockMovement $stockMovement): self
- {
- $this->stockMovements->removeElement($stockMovement);
+ $this->stockMovements[] = $stockMovement;
return $this;
}
diff --git a/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoint.php b/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoint.php
index 5fba0ce..6fcb0a0 100644
--- a/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoint.php
+++ b/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoint.php
@@ -1,216 +1,22 @@
-id;
- }
-
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
- public function setIdOrder(?int $idOrder): self
- {
- $this->idOrder = $idOrder;
-
- return $this;
- }
-
- public function getAddress1(): ?string
- {
- return $this->address1;
- }
-
- public function setAddress1(?string $address1): self
- {
- $this->address1 = $address1;
-
- return $this;
- }
-
- public function getAddress2(): ?string
- {
- return $this->address2;
- }
-
- public function setAddress2(?string $address2): self
- {
- $this->address2 = $address2;
-
- return $this;
- }
-
- public function getAddress3(): ?string
- {
- return $this->address3;
- }
-
- public function setAddress3(?string $address3): self
- {
- $this->address3 = $address3;
-
- return $this;
- }
-
- public function getColissimoId(): ?string
- {
- return $this->colissimoId;
- }
-
- public function setColissimoId(?string $colissimoId): self
- {
- $this->colissimoId = $colissimoId;
-
- return $this;
- }
-
- public function getCompanyName(): ?string
- {
- return $this->companyName;
- }
-
- public function setCompanyName(?string $companyName): self
- {
- $this->companyName = $companyName;
-
- return $this;
- }
-
- public function getCity(): ?string
- {
- return $this->city;
- }
-
- public function setCity(?string $city): self
- {
- $this->city = $city;
-
- return $this;
- }
-
- public function getZipcode(): ?string
- {
- return $this->zipcode;
- }
-
- public function setZipcode(?string $zipcode): self
- {
- $this->zipcode = $zipcode;
-
- return $this;
- }
-
- public function getCountry(): ?string
- {
- return $this->country;
- }
-
- public function setCountry(?string $country): self
- {
- $this->country = $country;
-
- return $this;
- }
-
- public function getIsoCountry(): ?string
- {
- return $this->isoCountry;
- }
-
- public function setIsoCountry(?string $isoCountry): self
- {
- $this->isoCountry = $isoCountry;
-
- return $this;
- }
-
- public function getProductCode(): ?string
- {
- return $this->productCode;
- }
-
- public function setProductCode(?string $productCode): self
- {
- $this->productCode = $productCode;
-
- return $this;
- }
-
- public function getNetwork(): ?string
- {
- return $this->network;
- }
-
- public function setNetwork(?string $network): self
- {
- $this->network = $network;
-
- return $this;
- }
-
- public function getDateAdd(): ?\DateTimeInterface
- {
- return $this->dateAdd;
- }
-
- public function setDateAdd(?\DateTimeInterface $dateAdd): self
- {
- $this->dateAdd = $dateAdd;
-
- return $this;
- }
-
- public function getDateUpd(): ?\DateTimeInterface
- {
- return $this->dateUpd;
- }
-
- public function setDateUpd(?\DateTimeInterface $dateUpd): self
- {
- $this->dateUpd = $dateUpd;
-
- return $this;
- }
+ public ?int $id = null;
+ public ?int $idOrder = null;
+ public ?string $address1 = null;
+ public ?string $address2 = null;
+ public ?string $address3 = null;
+ public ?string $colissimoId = null;
+ public ?string $companyName = null;
+ public ?string $city = null;
+ public ?string $zipcode = null;
+ public ?string $country = null;
+ public ?string $isoCountry = null;
+ public ?string $productCode = null;
+ public ?string $network = null;
+ public ?\DateTimeInterface $dateAdd = null;
+ public ?\DateTimeInterface $dateUpd = null;
}
diff --git a/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoints.php b/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoints.php
index e9131f6..f152ed0 100644
--- a/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoints.php
+++ b/src/Entity/Rem42Webservices/Colissimo/PrestashopPickupPoints.php
@@ -1,38 +1,15 @@
- */
- private Collection $pickupPoints;
-
- public function __construct()
- {
- $this->pickupPoints = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getPickupPoints(): Collection
- {
- return $this->pickupPoints;
- }
+ /** @var array */
+ public array $pickupPoints = [];
public function addPickupPoint(PrestashopPickupPoint $pickupPoint): self
{
- $this->pickupPoints->add($pickupPoint);
-
- return $this;
- }
-
- public function removePickupPoint(PrestashopPickupPoint $pickupPoint): self
- {
- $this->pickupPoints->removeElement($pickupPoint);
+ $this->pickupPoints[] = $pickupPoint;
return $this;
}
diff --git a/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfo.php b/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfo.php
index f241f65..883a3ec 100644
--- a/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfo.php
+++ b/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfo.php
@@ -1,300 +1,28 @@
-address1;
- }
-
- public function setAddress1(?string $address1): self
- {
- $this->address1 = $address1;
-
- return $this;
- }
-
- public function getAddress2(): ?string
- {
- return $this->address2;
- }
-
- public function setAddress2(?string $address2): self
- {
- $this->address2 = $address2;
-
- return $this;
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
- public function setIdOrder(?int $idOrder): self
- {
- $this->idOrder = $idOrder;
-
- return $this;
- }
-
- public function getIdCart(): ?int
- {
- return $this->idCart;
- }
-
- public function setIdCart(?int $idCart): self
- {
- $this->idCart = $idCart;
-
- return $this;
- }
-
- public function getIdCustomer(): ?int
- {
- return $this->idCustomer;
- }
-
- public function setIdCustomer(?int $idCustomer): self
- {
- $this->idCustomer = $idCustomer;
-
- return $this;
- }
-
- public function getIdPoint(): ?string
- {
- return $this->idPoint;
- }
-
- public function setIdPoint(?string $idPoint): self
- {
- $this->idPoint = $idPoint;
-
- return $this;
- }
-
- public function getFirstname(): ?string
- {
- return $this->firstname;
- }
-
- public function setFirstname(?string $firstname): self
- {
- $this->firstname = $firstname;
-
- return $this;
- }
-
- public function getLastname(): ?string
- {
- return $this->lastname;
- }
-
- public function setLastname(?string $lastname): self
- {
- $this->lastname = $lastname;
-
- return $this;
- }
-
- public function getCompany(): ?string
- {
- return $this->company;
- }
-
- public function setCompany(?string $company): self
- {
- $this->company = $company;
-
- return $this;
- }
-
- public function getPhoneMobile(): ?string
- {
- return $this->phoneMobile;
- }
-
- public function setPhoneMobile(?string $phoneMobile): self
- {
- $this->phoneMobile = $phoneMobile;
-
- return $this;
- }
-
- public function getEmail(): ?string
- {
- return $this->email;
- }
-
- public function setEmail(?string $email): self
- {
- $this->email = $email;
-
- return $this;
- }
-
- public function getType(): ?string
- {
- return $this->type;
- }
-
- public function setType(?string $type): self
- {
- $this->type = $type;
-
- return $this;
- }
-
- public function getLibelle(): ?string
- {
- return $this->libelle;
- }
-
- public function setLibelle(?string $libelle): self
- {
- $this->libelle = $libelle;
-
- return $this;
- }
-
- public function getIndice(): ?string
- {
- return $this->indice;
- }
-
- public function setIndice(?string $indice): self
- {
- $this->indice = $indice;
-
- return $this;
- }
-
- public function getPostcode(): ?string
- {
- return $this->postcode;
- }
-
- public function setPostcode(?string $postcode): self
- {
- $this->postcode = $postcode;
-
- return $this;
- }
-
- public function getCity(): ?string
- {
- return $this->city;
- }
-
- public function setCity(?string $city): self
- {
- $this->city = $city;
-
- return $this;
- }
-
- public function getCountry(): ?string
- {
- return $this->country;
- }
-
- public function setCountry(?string $country): self
- {
- $this->country = $country;
-
- return $this;
- }
-
- public function getLieudit(): ?string
- {
- return $this->lieudit;
- }
-
- public function setLieudit(?string $lieudit): self
- {
- $this->lieudit = $lieudit;
-
- return $this;
- }
-
- public function getInformations(): ?string
- {
- return $this->informations;
- }
-
- public function setInformations(?string $informations): self
- {
- $this->informations = $informations;
-
- return $this;
- }
-
- public function getReseau(): ?string
- {
- return $this->reseau;
- }
-
- public function setReseau(?string $reseau): self
- {
- $this->reseau = $reseau;
-
- return $this;
- }
+ public ?string $address1;
+ public ?string $address2;
+ public ?int $id = null;
+ public ?int $idOrder = null;
+ public ?int $idCart = null;
+ public ?int $idCustomer = null;
+ public ?string $idPoint = null;
+ public ?string $firstname = null;
+ public ?string $lastname = null;
+ public ?string $company = null;
+ public ?string $phoneMobile = null;
+ public ?string $email = null;
+ public ?string $type = null;
+ public ?string $libelle = null;
+ public ?string $indice = null;
+ public ?string $postcode = null;
+ public ?string $city = null;
+ public ?string $country = null;
+ public ?string $lieudit = null;
+ public ?string $informations = null;
+ public ?string $reseau = null;
}
diff --git a/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfos.php b/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfos.php
index a3c676c..43fcbcc 100644
--- a/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfos.php
+++ b/src/Entity/Rem42Webservices/Socolissimo/PrestashopDeliveryInfos.php
@@ -1,38 +1,15 @@
- */
- private Collection $deliveryInfos;
-
- public function __construct()
- {
- $this->deliveryInfos = new ArrayCollection();
- }
-
- /**
- * @return Collection
- */
- public function getDeliveryInfos(): Collection
- {
- return $this->deliveryInfos;
- }
+ /** @var array */
+ public array $deliveryInfos = [];
public function addDeliveryInfo(self $deliveryInfo): self
{
- $this->deliveryInfos->add($deliveryInfo);
-
- return $this;
- }
-
- public function removeDeliveryInfo(self $deliveryInfo): self
- {
- $this->deliveryInfos->removeElement($deliveryInfo);
+ $this->deliveryInfos[] = $deliveryInfo;
return $this;
}
diff --git a/src/Entity/Rem42Webservices/Stats/PrestashopStat.php b/src/Entity/Rem42Webservices/Stats/PrestashopStat.php
index dd19cea..dc6787e 100644
--- a/src/Entity/Rem42Webservices/Stats/PrestashopStat.php
+++ b/src/Entity/Rem42Webservices/Stats/PrestashopStat.php
@@ -1,34 +1,9 @@
-productCount;
- }
-
- public function setProductCount(?int $productCount): self
- {
- $this->productCount = $productCount;
-
- return $this;
- }
-
- public function getOrderCount(): ?int
- {
- return $this->orderCount;
- }
-
- public function setOrderCount(?int $orderCount): self
- {
- $this->orderCount = $orderCount;
-
- return $this;
- }
+ public ?int $productCount = null;
+ public ?int $orderCount = null;
}
diff --git a/src/Entity/Rem42Webservices/Tnt/PrestashopTntOfficielDeliveryPoint.php b/src/Entity/Rem42Webservices/Tnt/PrestashopTntOfficielDeliveryPoint.php
index a47ed79..a164733 100644
--- a/src/Entity/Rem42Webservices/Tnt/PrestashopTntOfficielDeliveryPoint.php
+++ b/src/Entity/Rem42Webservices/Tnt/PrestashopTntOfficielDeliveryPoint.php
@@ -1,188 +1,20 @@
-address1;
- }
-
- public function setAddress1(?string $address1): self
- {
- $this->address1 = $address1;
-
- return $this;
- }
-
- public function getAddress2(): ?string
- {
- return $this->address2;
- }
-
- public function setAddress2(?string $address2): self
- {
- $this->address2 = $address2;
-
- return $this;
- }
-
- public function getXett(): ?string
- {
- return $this->xett;
- }
-
- public function setXett(?string $xett): self
- {
- $this->xett = $xett;
-
- return $this;
- }
-
- public function getPex(): ?string
- {
- return $this->pex;
- }
-
- public function setPex(?string $pex): self
- {
- $this->pex = $pex;
-
- return $this;
- }
-
- public function getName(): ?string
- {
- return $this->name;
- }
-
- public function setName(?string $name): self
- {
- $this->name = $name;
-
- return $this;
- }
-
- public function getCity(): ?string
- {
- return $this->city;
- }
-
- public function setCity(?string $city): self
- {
- $this->city = $city;
-
- return $this;
- }
-
- public function getPostcode(): ?string
- {
- return $this->postcode;
- }
-
- public function setPostcode(?string $postcode): self
- {
- $this->postcode = $postcode;
-
- return $this;
- }
-
- public function getAddress(): ?string
- {
- return $this->address;
- }
-
- public function setAddress(?string $address): self
- {
- $this->address = $address;
-
- return $this;
- }
-
- public function getLatitude(): ?string
- {
- return $this->latitude;
- }
-
- public function setLatitude(?string $latitude): self
- {
- $this->latitude = $latitude;
-
- return $this;
- }
-
- public function getLongitude(): ?string
- {
- return $this->longitude;
- }
-
- public function setLongitude(?string $longitude): self
- {
- $this->longitude = $longitude;
-
- return $this;
- }
-
- public function getEnabled(): ?bool
- {
- return $this->enabled;
- }
-
- public function setEnabled(?bool $enabled): self
- {
- $this->enabled = $enabled;
-
- return $this;
- }
-
- public function getClosing(): ?string
- {
- return $this->closing;
- }
-
- public function setClosing(?string $closing): self
- {
- $this->closing = $closing;
-
- return $this;
- }
-
- public function getReopening(): ?string
- {
- return $this->reopening;
- }
-
- public function setReopening(?string $reopening): self
- {
- $this->reopening = $reopening;
-
- return $this;
- }
+ public ?string $address1 = null;
+ public ?string $address2 = null;
+ public ?string $xett = null;
+ public ?string $pex = null;
+ public ?string $name = null;
+ public ?string $city = null;
+ public ?string $postcode = null;
+ public ?string $address = null;
+ public ?string $latitude = null;
+ public ?string $longitude = null;
+ public ?bool $enabled = null;
+ public ?string $closing = null;
+ public ?string $reopening = null;
}
diff --git a/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielCart.php b/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielCart.php
index d702624..ece82f2 100644
--- a/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielCart.php
+++ b/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielCart.php
@@ -1,132 +1,16 @@
-id;
- }
-
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function getIdCart(): ?int
- {
- return $this->idCart;
- }
-
- public function setIdCart(?int $idCart): self
- {
- $this->idCart = $idCart;
-
- return $this;
- }
-
- public function getCarrierCode(): ?string
- {
- return $this->carrierCode;
- }
-
- public function setCarrierCode(?string $carrierCode): self
- {
- $this->carrierCode = $carrierCode;
-
- return $this;
- }
-
- public function getDeliveryPoint(): ?string
- {
- return $this->deliveryPoint;
- }
-
- public function setDeliveryPoint(?string $deliveryPoint): self
- {
- $this->deliveryPoint = $deliveryPoint;
-
- return $this;
- }
-
- public function getCustomerEmail(): ?string
- {
- return $this->customerEmail;
- }
-
- public function setCustomerEmail(?string $customerEmail): self
- {
- $this->customerEmail = $customerEmail;
-
- return $this;
- }
-
- public function getCustomerMobile(): ?string
- {
- return $this->customerMobile;
- }
-
- public function setCustomerMobile(?string $customerMobile): self
- {
- $this->customerMobile = $customerMobile;
-
- return $this;
- }
-
- public function getAddressBuilding(): ?string
- {
- return $this->addressBuilding;
- }
-
- public function setAddressBuilding(?string $addressBuilding): self
- {
- $this->addressBuilding = $addressBuilding;
-
- return $this;
- }
-
- public function getAddressAccesscode(): ?string
- {
- return $this->addressAccesscode;
- }
-
- public function setAddressAccesscode(?string $addressAccesscode): self
- {
- $this->addressAccesscode = $addressAccesscode;
-
- return $this;
- }
-
- public function getAddressFloor(): ?string
- {
- return $this->addressFloor;
- }
-
- public function setAddressFloor(?string $addressFloor): self
- {
- $this->addressFloor = $addressFloor;
-
- return $this;
- }
+ public ?int $id = null;
+ public ?int $idCart = null;
+ public ?string $carrierCode = null;
+ public ?string $deliveryPoint = null;
+ public ?string $customerEmail = null;
+ public ?string $customerMobile = null;
+ public ?string $addressBuilding = null;
+ public ?string $addressAccesscode = null;
+ public ?string $addressFloor = null;
}
diff --git a/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielOrder.php b/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielOrder.php
index ed30709..901bb27 100644
--- a/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielOrder.php
+++ b/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielOrder.php
@@ -1,118 +1,15 @@
-id;
- }
-
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function getIdOrder(): ?int
- {
- return $this->idOrder;
- }
-
- public function setIdOrder(?int $idOrder): self
- {
- $this->idOrder = $idOrder;
-
- return $this;
- }
-
- public function getDeliveryPoint(): ?PrestashopTntOfficielDeliveryPoint
- {
- return $this->deliveryPoint;
- }
-
- public function setDeliveryPoint(?PrestashopTntOfficielDeliveryPoint $deliveryPoint): self
- {
- $this->deliveryPoint = $deliveryPoint;
-
- return $this;
- }
-
- public function getIsShipped(): ?bool
- {
- return $this->isShipped;
- }
-
- public function setIsShipped(?bool $isShipped): self
- {
- $this->isShipped = $isShipped;
-
- return $this;
- }
-
- public function getPickupNumber(): ?string
- {
- return $this->pickupNumber;
- }
-
- public function setPickupNumber(?string $pickupNumber): self
- {
- $this->pickupNumber = $pickupNumber;
-
- return $this;
- }
-
- public function getShippingDate(): ?\DateTimeInterface
- {
- return $this->shippingDate;
- }
-
- public function setShippingDate(?\DateTimeInterface $shippingDate): self
- {
- $this->shippingDate = $shippingDate;
-
- return $this;
- }
-
- public function getDueDate(): ?string
- {
- return $this->dueDate;
- }
-
- public function setDueDate(?string $dueDate): self
- {
- $this->dueDate = $dueDate;
-
- return $this;
- }
-
- public function getStartDate(): ?\DateTimeInterface
- {
- return $this->startDate;
- }
-
- public function setStartDate(?\DateTimeInterface $startDate): self
- {
- $this->startDate = $startDate;
-
- return $this;
- }
+ public ?int $id = null;
+ public ?int $idOrder = null;
+ public ?PrestashopTntOfficielDeliveryPoint $deliveryPoint = null;
+ public ?bool $isShipped = null;
+ public ?string $pickupNumber = null;
+ public ?\DateTimeInterface $shippingDate = null;
+ public ?string $dueDate = null;
+ public ?\DateTimeInterface $startDate = null;
}
diff --git a/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielReceiver.php b/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielReceiver.php
index 40d5e8b..a5ccbf8 100644
--- a/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielReceiver.php
+++ b/src/Entity/Rem42Webservices/Tnt/PrestashopTntofficielReceiver.php
@@ -1,118 +1,15 @@
-id;
- }
-
- public function setId(?int $id): self
- {
- $this->id = $id;
-
- return $this;
- }
-
- public function getIdAddress(): ?int
- {
- return $this->idAddress;
- }
-
- public function setIdAddress(?int $idAddress): self
- {
- $this->idAddress = $idAddress;
-
- return $this;
- }
-
- public function getReceiverEmail(): ?string
- {
- return $this->receiverEmail;
- }
-
- public function setReceiverEmail(?string $receiverEmail): self
- {
- $this->receiverEmail = $receiverEmail;
-
- return $this;
- }
-
- public function getReceiverMobile(): ?string
- {
- return $this->receiverMobile;
- }
-
- public function setReceiverMobile(?string $receiverMobile): self
- {
- $this->receiverMobile = $receiverMobile;
-
- return $this;
- }
-
- public function getReceiverBuilding(): ?string
- {
- return $this->receiverBuilding;
- }
-
- public function setReceiverBuilding(?string $receiverBuilding): self
- {
- $this->receiverBuilding = $receiverBuilding;
-
- return $this;
- }
-
- public function getReceiverAccesscode(): ?string
- {
- return $this->receiverAccesscode;
- }
-
- public function setReceiverAccesscode(?string $receiverAccesscode): self
- {
- $this->receiverAccesscode = $receiverAccesscode;
-
- return $this;
- }
-
- public function getReceiverFloor(): ?string
- {
- return $this->receiverFloor;
- }
-
- public function setReceiverFloor(?string $receiverFloor): self
- {
- $this->receiverFloor = $receiverFloor;
-
- return $this;
- }
-
- public function getReceiverInstructions(): ?string
- {
- return $this->receiverInstructions;
- }
-
- public function setReceiverInstructions(?string $receiverInstructions): self
- {
- $this->receiverInstructions = $receiverInstructions;
-
- return $this;
- }
+ public ?int $id = null;
+ public ?int $idAddress = null;
+ public ?string $receiverEmail = null;
+ public ?string $receiverMobile = null;
+ public ?string $receiverBuilding = null;
+ public ?string $receiverAccesscode = null;
+ public ?string $receiverFloor = null;
+ public ?string $receiverInstructions = null;
}
diff --git a/src/Exception/PrestashopException.php b/src/Exception/PrestashopException.php
index f89a2bb..c4d8800 100644
--- a/src/Exception/PrestashopException.php
+++ b/src/Exception/PrestashopException.php
@@ -1,4 +1,4 @@
- new JsonEncoder(), 'xml' => new XmlEncoder()];
+ $encoders = ['json' => new JsonEncoder(), 'xml' => new XmlEncoder()];
$normalizers = [
new PrestashopItemNormalizer(),
new PrestashopDeliveryPointNormalizer(new ObjectNormalizer()),
diff --git a/src/Normalizer/PrestashopDeliveryPointNormalizer.php b/src/Normalizer/PrestashopDeliveryPointNormalizer.php
index 9376871..d68cb34 100644
--- a/src/Normalizer/PrestashopDeliveryPointNormalizer.php
+++ b/src/Normalizer/PrestashopDeliveryPointNormalizer.php
@@ -1,12 +1,12 @@
-normalizer->denormalize($data, PrestashopTntOfficielDeliveryPoint::class);
}
diff --git a/src/Normalizer/PrestashopItemNormalizer.php b/src/Normalizer/PrestashopItemNormalizer.php
index 7f52208..a6465a3 100644
--- a/src/Normalizer/PrestashopItemNormalizer.php
+++ b/src/Normalizer/PrestashopItemNormalizer.php
@@ -1,4 +1,4 @@
- $context
*
- * @return PrestashopItem|PrestashopItem[]
+ * @return PrestashopItem|array
*/
public function denormalize($data, string $type, string $format = null, array $context = [])
{
+ if (!\is_string($data)) {
+ return [];
+ }
$prestashopItem = new PrestashopItem();
$prestashopItem
->setValue($data)
@@ -21,7 +24,7 @@ public function denormalize($data, string $type, string $format = null, array $c
return PrestashopItem::class === $type ? $prestashopItem : [$prestashopItem];
}
- public function supportsDenormalization($data, string $type, string $format = null)
+ public function supportsDenormalization($data, string $type, string $format = null): bool
{
return !\is_array($data)
&& (PrestashopItem::class === $type || PrestashopItem::class . '[]' === $type);
diff --git a/src/Request/PrestashopGetRequest.php b/src/Request/PrestashopGetRequest.php
index 15f44ef..b483010 100644
--- a/src/Request/PrestashopGetRequest.php
+++ b/src/Request/PrestashopGetRequest.php
@@ -1,14 +1,12 @@
-limit = $offset . ',' . $limit;
diff --git a/src/Request/PrestashopPostRequest.php b/src/Request/PrestashopPostRequest.php
index ef1ce51..3d3e800 100644
--- a/src/Request/PrestashopPostRequest.php
+++ b/src/Request/PrestashopPostRequest.php
@@ -1,16 +1,15 @@
-host = $host;
- $this->key = $key;
+ $this->host = $host;
+ $this->key = $key;
$this->resource = $resource;
}
@@ -57,7 +56,7 @@ public function getHeaders(): array
{
return [
'Output-Format' => 'JSON',
- 'Io-Format' => 'JSON',
+ 'Io-Format' => 'JSON',
];
}
diff --git a/src/Tools/ResourceMapping.php b/src/Tools/ResourceMapping.php
index 54e927b..62bb656 100644
--- a/src/Tools/ResourceMapping.php
+++ b/src/Tools/ResourceMapping.php
@@ -1,4 +1,4 @@
- [
- 'list' => PrestashopAddresses::class,
- 'one' => PrestashopAddress::class,
+ 'list' => PrestashopAddresses::class,
+ 'one' => PrestashopAddress::class,
'singular' => 'address',
],
'carriers' => [
- 'list' => PrestashopCarriers::class,
- 'one' => PrestashopCarrier::class,
+ 'list' => PrestashopCarriers::class,
+ 'one' => PrestashopCarrier::class,
'singular' => 'carrier',
],
'cart_rules' => [
- 'list' => PrestashopCartRules::class,
- 'one' => PrestashopCartRule::class,
+ 'list' => PrestashopCartRules::class,
+ 'one' => PrestashopCartRule::class,
'singular' => 'cart_rule',
],
'carts' => [
- 'list' => PrestashopCarts::class,
- 'one' => PrestashopCart::class,
+ 'list' => PrestashopCarts::class,
+ 'one' => PrestashopCart::class,
'singular' => 'cart',
],
'categories' => [
- 'list' => PrestashopCategories::class,
- 'one' => PrestashopCategory::class,
+ 'list' => PrestashopCategories::class,
+ 'one' => PrestashopCategory::class,
'singular' => 'category',
],
'combinations' => [
- 'list' => PrestashopCombinations::class,
- 'one' => PrestashopCombination::class,
+ 'list' => PrestashopCombinations::class,
+ 'one' => PrestashopCombination::class,
'singular' => 'combination',
],
'configurations' => [
- 'list' => PrestashopConfigurations::class,
- 'one' => PrestashopConfiguration::class,
+ 'list' => PrestashopConfigurations::class,
+ 'one' => PrestashopConfiguration::class,
'singular' => 'configuration',
],
'contacts' => [
- 'list' => PrestashopContacts::class,
- 'one' => PrestashopContact::class,
+ 'list' => PrestashopContacts::class,
+ 'one' => PrestashopContact::class,
'singular' => 'contact',
],
'content_management_system' => [
- 'list' => PrestashopContentManagementSystem::class,
- 'one' => PrestashopContentManagementSystem::class,
+ 'list' => PrestashopContentManagementSystem::class,
+ 'one' => PrestashopContentManagementSystem::class,
'singular' => 'content_management_system',
],
'countries' => [
- 'list' => PrestashopCountries::class,
- 'one' => PrestashopCountry::class,
+ 'list' => PrestashopCountries::class,
+ 'one' => PrestashopCountry::class,
'singular' => 'country',
],
'currencies' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'currency',
],
'customer_messages' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'customer_message',
],
'customer_threads' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'customer_thread',
],
'customers' => [
- 'list' => PrestashopCustomers::class,
- 'one' => PrestashopCustomer::class,
+ 'list' => PrestashopCustomers::class,
+ 'one' => PrestashopCustomer::class,
'singular' => 'customer',
],
'customizations' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'customizations',
],
'deliveries' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'delivery',
],
'description' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'description',
],
'employees' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'employee',
],
'groups' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'group',
],
'guests' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'guest',
],
'image_types' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'image_type',
],
'images' => [
- 'list' => PrestashopImages::class,
- 'one' => PrestashopImage::class,
+ 'list' => PrestashopImages::class,
+ 'one' => PrestashopImage::class,
'singular' => 'image',
],
'languages' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'language',
],
'manufacturers' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'manufacturer',
],
'messages' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'message',
],
'order_carriers' => [
- 'list' => PrestashopOrderCarriers::class,
- 'one' => PrestashopOrderCarrier::class,
+ 'list' => PrestashopOrderCarriers::class,
+ 'one' => PrestashopOrderCarrier::class,
'singular' => 'order_carrier',
],
'order_details' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'order_detail',
],
'order_histories' => [
- 'list' => PrestashopOrderHistories::class,
- 'one' => PrestashopOrderHistory::class,
+ 'list' => PrestashopOrderHistories::class,
+ 'one' => PrestashopOrderHistory::class,
'singular' => 'order_history',
],
'order_invoices' => [
- 'list' => PrestashopOrderInvoices::class,
- 'one' => PrestashopOrderInvoice::class,
+ 'list' => PrestashopOrderInvoices::class,
+ 'one' => PrestashopOrderInvoice::class,
'singular' => 'order_invoice',
],
'order_payments' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'order_payment',
],
'order_slip' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'order_slip',
],
'order_states' => [
- 'list' => PrestashopOrderStates::class,
- 'one' => PrestashopOrderState::class,
+ 'list' => PrestashopOrderStates::class,
+ 'one' => PrestashopOrderState::class,
'singular' => 'order_state',
],
'orders' => [
- 'list' => PrestashopOrders::class,
- 'one' => PrestashopOrder::class,
+ 'list' => PrestashopOrders::class,
+ 'one' => PrestashopOrder::class,
'singular' => 'order',
],
'price_ranges' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'price_range',
],
'product_customization_fields' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'product_customization_field',
],
'product_feature_values' => [
- 'list' => PrestashopProductFeatureValues::class,
- 'one' => PrestashopProductFeatureValue::class,
+ 'list' => PrestashopProductFeatureValues::class,
+ 'one' => PrestashopProductFeatureValue::class,
'singular' => 'product_feature_value',
],
'product_features' => [
- 'list' => PrestashopProductFeatures::class,
- 'one' => PrestashopProductFeature::class,
+ 'list' => PrestashopProductFeatures::class,
+ 'one' => PrestashopProductFeature::class,
'singular' => 'product_feature',
],
'product_option_values' => [
- 'list' => PrestashopProductOptionValues::class,
- 'one' => PrestashopProductOptionValue::class,
+ 'list' => PrestashopProductOptionValues::class,
+ 'one' => PrestashopProductOptionValue::class,
'singular' => 'product_option_value',
],
'product_options' => [
- 'list' => PrestashopProductOptions::class,
- 'one' => PrestashopProductOption::class,
+ 'list' => PrestashopProductOptions::class,
+ 'one' => PrestashopProductOption::class,
'singular' => 'product_option',
],
'product_suppliers' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'product_supplier',
],
'products' => [
- 'list' => PrestashopProducts::class,
- 'one' => PrestashopProduct::class,
+ 'list' => PrestashopProducts::class,
+ 'one' => PrestashopProduct::class,
'singular' => 'product',
],
'search' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'search',
],
'shop_groups' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'shop_group',
],
'shop_urls' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'shop_url',
],
'shops' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'shop',
],
'specific_management' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'specific_management',
],
'specific_price_rules' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'specific_price_rule',
],
'specific_prices' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'specific_price',
],
'states' => [
- 'list' => PrestashopStates::class,
- 'one' => PrestashopState::class,
+ 'list' => PrestashopStates::class,
+ 'one' => PrestashopState::class,
'singular' => 'state',
],
'stock_availables' => [
- 'list' => PrestashopStockAvailables::class,
- 'one' => PrestashopStockAvailable::class,
+ 'list' => PrestashopStockAvailables::class,
+ 'one' => PrestashopStockAvailable::class,
'singular' => 'stock_available',
],
'stock_movement_reasons' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'stock_movement_reason',
],
'stock_movements' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'stock_movement',
],
'stocks' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'stock',
],
'stores' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'store',
],
'suppliers' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'supplier',
],
'supply_order_details' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'supply_order_detail',
],
'supply_order_histories' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'supply_order_history',
],
'supply_order_receipt_histories' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'supply_order_receipt_history',
],
'supply_order_states' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'supply_order_states',
],
'supply_orders' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'supply_order',
],
'tags' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'tag',
],
'tax_rule_groups' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'tax_rule_group',
],
'tax_rules' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'tax_rule',
],
'taxes' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'tax',
],
'translated_configurations' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'translated_configuration',
],
'warehouse_product_locations' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'warehouse_product_location',
],
'warehouses' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'warehouse',
],
'weight_ranges' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'weight_range',
],
'zones' => [
- 'list' => '',
- 'one' => '',
+ 'list' => '',
+ 'one' => '',
'singular' => 'zone',
],
'rem42_webservices/colissimo/pickup_points' => [
- 'list' => PrestashopPickupPoints::class,
- 'one' => PrestashopPickupPoint::class,
+ 'list' => PrestashopPickupPoints::class,
+ 'one' => PrestashopPickupPoint::class,
'singular' => 'pickup_point',
],
'rem42_webservices/tnt/tntofficiel_receiver' => [
- 'list' => '',
- 'one' => PrestashopTntofficielReceiver::class,
+ 'list' => '',
+ 'one' => PrestashopTntofficielReceiver::class,
'singular' => 'tntofficiel_receiver',
],
'rem42_webservices/tnt/tntofficiel_order' => [
- 'list' => '',
- 'one' => PrestashopTntofficielOrder::class,
+ 'list' => '',
+ 'one' => PrestashopTntofficielOrder::class,
'singular' => 'tntofficiel_order',
],
'rem42_webservices/tnt/tntofficiel_cart' => [
- 'list' => '',
- 'one' => PrestashopTntofficielCart::class,
+ 'list' => '',
+ 'one' => PrestashopTntofficielCart::class,
'singular' => 'tntofficiel_cart',
],
'rem42_webservices/orders/invoices' => [
diff --git a/tests/Api/AbstractPrestashopApiTestCase.php b/tests/Api/AbstractPrestashopApiTestCase.php
index 62e85a1..52e75bb 100644
--- a/tests/Api/AbstractPrestashopApiTestCase.php
+++ b/tests/Api/AbstractPrestashopApiTestCase.php
@@ -1,9 +1,9 @@
-createMock(ResponseInterface::class);
$responseInterface
- ->method('getStatusCode')->willReturn($statusCode);
+ ->method('getStatusCode')->willReturn($statusCode)
+ ;
$responseInterface
- ->method('getContent')->willReturn($this->loadFixture($fixture));
+ ->method('getContent')->willReturn($this->loadFixture($fixture))
+ ;
$prestashopGetApi = new PrestashopGetApi(
$scraperRequest,
diff --git a/tests/Api/PrestashopColissimoPickUpPointApiTest.php b/tests/Api/PrestashopColissimoPickUpPointApiTest.php
index 8a42e4b..846b4a8 100644
--- a/tests/Api/PrestashopColissimoPickUpPointApiTest.php
+++ b/tests/Api/PrestashopColissimoPickUpPointApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopPickupPoint::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(8, $result->getIdOrder());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(8, $result->idOrder);
}
public function testList(): void
@@ -38,7 +38,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopStockAvailables::class, $result);
- $this->assertCount(2, $result->getStockAvailables());
- $this->assertInstanceOf(PrestashopStockAvailable::class, $result->getStockAvailables()->first());
+ $this->assertCount(2, $result->stockAvailables);
+ $this->assertInstanceOf(PrestashopStockAvailable::class, $result->stockAvailables[0]);
}
}
diff --git a/tests/Api/PrestashopGetAddressApiTest.php b/tests/Api/PrestashopGetAddressApiTest.php
index 7a47c88..2ac897b 100644
--- a/tests/Api/PrestashopGetAddressApiTest.php
+++ b/tests/Api/PrestashopGetAddressApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopAddress::class, $result);
- $this->assertEquals(42, $result->getId());
- $this->assertEquals(24, $result->getIdCustomer());
+ $this->assertEquals(42, $result->id);
+ $this->assertEquals(24, $result->idCustomer);
- $this->assertFalse($result->getDeleted());
+ $this->assertFalse($result->deleted);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getDateAdd());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->dateAdd);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getDateUpd());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->dateUpd);
}
public function testList(): void
@@ -41,7 +41,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopAddresses::class, $result);
- $this->assertCount(2, $result->getAddresses());
- $this->assertInstanceOf(PrestashopAddress::class, $result->getAddresses()->first());
+ $this->assertCount(2, $result->addresses);
+ $this->assertInstanceOf(PrestashopAddress::class, $result->addresses[0]);
}
}
diff --git a/tests/Api/PrestashopGetCarrierApiTest.php b/tests/Api/PrestashopGetCarrierApiTest.php
index 7bb2a2d..4360fb5 100644
--- a/tests/Api/PrestashopGetCarrierApiTest.php
+++ b/tests/Api/PrestashopGetCarrierApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopCarrier::class, $result);
- $this->assertEquals(42, $result->getId());
- $this->assertEquals(24, $result->getIdReference());
+ $this->assertEquals(42, $result->id);
+ $this->assertEquals(24, $result->idReference);
- $this->assertCount(1, $result->getDelay());
+ $this->assertCount(1, $result->delay);
- $this->assertInstanceOf(PrestashopItem::class, $result->getDelay()->first());
+ $this->assertInstanceOf(PrestashopItem::class, $result->delay[0]);
}
public function testMultilang(): void
@@ -43,12 +43,12 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopCarrier::class, $result);
- $this->assertEquals(42, $result->getId());
- $this->assertEquals(24, $result->getIdReference());
+ $this->assertEquals(42, $result->id);
+ $this->assertEquals(24, $result->idReference);
- $this->assertCount(2, $result->getDelay());
+ $this->assertCount(2, $result->delay);
- $this->assertInstanceOf(PrestashopItem::class, $result->getDelay()->first());
+ $this->assertInstanceOf(PrestashopItem::class, $result->delay[0]);
}
public function testList(): void
@@ -62,7 +62,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopCarriers::class, $result);
- $this->assertCount(2, $result->getCarriers());
- $this->assertInstanceOf(PrestashopCarrier::class, $result->getCarriers()->first());
+ $this->assertCount(2, $result->carriers);
+ $this->assertInstanceOf(PrestashopCarrier::class, $result->carriers[0]);
}
}
diff --git a/tests/Api/PrestashopGetCartApiTest.php b/tests/Api/PrestashopGetCartApiTest.php
index bd39dd5..6501153 100644
--- a/tests/Api/PrestashopGetCartApiTest.php
+++ b/tests/Api/PrestashopGetCartApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopCart::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(2, $result->getIdCustomer());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(2, $result->idCustomer);
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(2, $result->getAssociations()->getCartRows());
+ $this->assertCount(2, $result->associations->cartRows);
- $this->assertInstanceOf(PrestashopCartRow::class, $result->getAssociations()->getCartRows()->first());
+ $this->assertInstanceOf(PrestashopCartRow::class, $result->associations->cartRows[0]);
}
public function testList(): void
@@ -45,7 +45,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopCarts::class, $result);
- $this->assertCount(2, $result->getCarts());
- $this->assertInstanceOf(PrestashopCart::class, $result->getCarts()->first());
+ $this->assertCount(2, $result->carts);
+ $this->assertInstanceOf(PrestashopCart::class, $result->carts[0]);
}
}
diff --git a/tests/Api/PrestashopGetCategoryApiTest.php b/tests/Api/PrestashopGetCategoryApiTest.php
index 8cc5acc..feabba5 100644
--- a/tests/Api/PrestashopGetCategoryApiTest.php
+++ b/tests/Api/PrestashopGetCategoryApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopCategory::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(0, $result->getIdParent());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(0, $result->idParent);
- $this->assertCount(1, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(1, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(1, $result->getLinkRewrite());
- $this->assertInstanceOf(PrestashopItem::class, $result->getLinkRewrite()->first());
+ $this->assertCount(1, $result->linkRewrite);
+ $this->assertInstanceOf(PrestashopItem::class, $result->linkRewrite[0]);
- $this->assertCount(1, $result->getDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDescription()->first());
+ $this->assertCount(1, $result->description);
+ $this->assertInstanceOf(PrestashopItem::class, $result->description[0]);
- $this->assertCount(1, $result->getMetaTitle());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaTitle()->first());
+ $this->assertCount(1, $result->metaTitle);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaTitle[0]);
- $this->assertCount(1, $result->getMetaDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaDescription()->first());
+ $this->assertCount(1, $result->metaDescription);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaDescription[0]);
- $this->assertCount(1, $result->getMetaKeywords());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaKeywords()->first());
+ $this->assertCount(1, $result->metaKeywords);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaKeywords[0]);
}
public function testMulitlang(): void
@@ -57,26 +57,26 @@ public function testMulitlang(): void
$this->assertInstanceOf(PrestashopCategory::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(0, $result->getIdParent());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(0, $result->idParent);
- $this->assertCount(2, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(2, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(2, $result->getLinkRewrite());
- $this->assertInstanceOf(PrestashopItem::class, $result->getLinkRewrite()->first());
+ $this->assertCount(2, $result->linkRewrite);
+ $this->assertInstanceOf(PrestashopItem::class, $result->linkRewrite[0]);
- $this->assertCount(2, $result->getDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDescription()->first());
+ $this->assertCount(2, $result->description);
+ $this->assertInstanceOf(PrestashopItem::class, $result->description[0]);
- $this->assertCount(2, $result->getMetaTitle());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaTitle()->first());
+ $this->assertCount(2, $result->metaTitle);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaTitle[0]);
- $this->assertCount(2, $result->getMetaDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaDescription()->first());
+ $this->assertCount(2, $result->metaDescription);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaDescription[0]);
- $this->assertCount(2, $result->getMetaKeywords());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaKeywords()->first());
+ $this->assertCount(2, $result->metaKeywords);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaKeywords[0]);
}
public function testList(): void
@@ -90,7 +90,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopCategories::class, $result);
- $this->assertCount(2, $result->getCategories());
- $this->assertInstanceOf(PrestashopCategory::class, $result->getCategories()->first());
+ $this->assertCount(2, $result->categories);
+ $this->assertInstanceOf(PrestashopCategory::class, $result->categories[0]);
}
}
diff --git a/tests/Api/PrestashopGetCombinationApiTest.php b/tests/Api/PrestashopGetCombinationApiTest.php
index d51e282..49c86c2 100644
--- a/tests/Api/PrestashopGetCombinationApiTest.php
+++ b/tests/Api/PrestashopGetCombinationApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopCombination::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(1, $result->getIdProduct());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(1, $result->idProduct);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getAvailableDate());
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->availableDate);
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(2, $result->getAssociations()->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getAssociations()->getProductOptionValues()->first());
+ $this->assertCount(2, $result->associations->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->associations->productOptionValues[0]);
- $this->assertCount(1, $result->getAssociations()->getImages());
- $this->assertInstanceOf(PrestashopImage::class, $result->getAssociations()->getImages()->first());
+ $this->assertCount(1, $result->associations->images);
+ $this->assertInstanceOf(PrestashopImage::class, $result->associations->images[0]);
}
public function testList(): void
@@ -49,7 +49,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopCombinations::class, $result);
- $this->assertCount(2, $result->getCombinations());
- $this->assertInstanceOf(PrestashopCombination::class, $result->getCombinations()->first());
+ $this->assertCount(2, $result->combinations);
+ $this->assertInstanceOf(PrestashopCombination::class, $result->combinations[0]);
}
}
diff --git a/tests/Api/PrestashopGetCountryApiTest.php b/tests/Api/PrestashopGetCountryApiTest.php
index 93c57bd..85c24fb 100644
--- a/tests/Api/PrestashopGetCountryApiTest.php
+++ b/tests/Api/PrestashopGetCountryApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopCountry::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals('DE', $result->getIsoCode());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals('DE', $result->isoCode);
- $this->assertCount(1, $result->getName());
+ $this->assertCount(1, $result->name);
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
}
public function testMultilang(): void
@@ -43,12 +43,12 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopCountry::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals('DE', $result->getIsoCode());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals('DE', $result->isoCode);
- $this->assertCount(2, $result->getName());
+ $this->assertCount(2, $result->name);
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
}
public function testList(): void
@@ -62,7 +62,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopCountries::class, $result);
- $this->assertCount(2, $result->getCountries());
- $this->assertInstanceOf(PrestashopCountry::class, $result->getCountries()->first());
+ $this->assertCount(2, $result->countries);
+ $this->assertInstanceOf(PrestashopCountry::class, $result->countries[0]);
}
}
diff --git a/tests/Api/PrestashopGetCustomerApiTest.php b/tests/Api/PrestashopGetCustomerApiTest.php
index bc5f5a5..8ae0e04 100644
--- a/tests/Api/PrestashopGetCustomerApiTest.php
+++ b/tests/Api/PrestashopGetCustomerApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopCombination::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(1, $result->getIdProduct());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(1, $result->idProduct);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getAvailableDate());
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->availableDate);
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(2, $result->getAssociations()->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getAssociations()->getProductOptionValues()->first());
+ $this->assertCount(2, $result->associations->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->associations->productOptionValues[0]);
- $this->assertCount(1, $result->getAssociations()->getImages());
- $this->assertInstanceOf(PrestashopImage::class, $result->getAssociations()->getImages()->first());
+ $this->assertCount(1, $result->associations->images);
+ $this->assertInstanceOf(PrestashopImage::class, $result->associations->images[0]);
}
public function testList(): void
@@ -49,7 +49,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopCombinations::class, $result);
- $this->assertCount(2, $result->getCombinations());
- $this->assertInstanceOf(PrestashopCombination::class, $result->getCombinations()->first());
+ $this->assertCount(2, $result->combinations);
+ $this->assertInstanceOf(PrestashopCombination::class, $result->combinations[0]);
}
}
diff --git a/tests/Api/PrestashopGetOrderApiTest.php b/tests/Api/PrestashopGetOrderApiTest.php
index 62d0ed0..8e0e3f5 100644
--- a/tests/Api/PrestashopGetOrderApiTest.php
+++ b/tests/Api/PrestashopGetOrderApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopOrder::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(1, $result->getIdCart());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(1, $result->idCart);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getDateAdd());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->dateAdd);
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(2, $result->getAssociations()->getOrderRows());
- $this->assertInstanceOf(PrestashopOrderRow::class, $result->getAssociations()->getOrderRows()->first());
+ $this->assertCount(2, $result->associations->orderRows);
+ $this->assertInstanceOf(PrestashopOrderRow::class, $result->associations->orderRows[0]);
}
public function testList(): void
@@ -46,7 +46,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopOrders::class, $result);
- $this->assertCount(2, $result->getOrders());
- $this->assertInstanceOf(PrestashopOrder::class, $result->getOrders()->first());
+ $this->assertCount(2, $result->orders);
+ $this->assertInstanceOf(PrestashopOrder::class, $result->orders[0]);
}
}
diff --git a/tests/Api/PrestashopGetOrderCarrierApiTest.php b/tests/Api/PrestashopGetOrderCarrierApiTest.php
index df35d74..30f5cd4 100644
--- a/tests/Api/PrestashopGetOrderCarrierApiTest.php
+++ b/tests/Api/PrestashopGetOrderCarrierApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopOrderCarrier::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(1, $result->getIdOrder());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(1, $result->idOrder);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getDateAdd());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->dateAdd);
}
public function testList(): void
@@ -39,7 +39,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopOrderCarriers::class, $result);
- $this->assertCount(2, $result->getOrderCarriers());
- $this->assertInstanceOf(PrestashopOrderCarrier::class, $result->getOrderCarriers()->first());
+ $this->assertCount(2, $result->orderCarriers);
+ $this->assertInstanceOf(PrestashopOrderCarrier::class, $result->orderCarriers[0]);
}
}
diff --git a/tests/Api/PrestashopGetOrderInvoiceApiTest.php b/tests/Api/PrestashopGetOrderInvoiceApiTest.php
index 0e5f263..cc983cb 100644
--- a/tests/Api/PrestashopGetOrderInvoiceApiTest.php
+++ b/tests/Api/PrestashopGetOrderInvoiceApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopOrderInvoice::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(6, $result->getIdOrder());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(6, $result->idOrder);
- $this->assertInstanceOf(\DateTimeInterface::class, $result->getDateAdd());
+ $this->assertInstanceOf(\DateTimeInterface::class, $result->dateAdd);
}
public function testList(): void
@@ -39,7 +39,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopOrderInvoices::class, $result);
- $this->assertCount(2, $result->getOrderInvoices());
- $this->assertInstanceOf(PrestashopOrderInvoice::class, $result->getOrderInvoices()->first());
+ $this->assertCount(2, $result->orderInvoices);
+ $this->assertInstanceOf(PrestashopOrderInvoice::class, $result->orderInvoices[0]);
}
}
diff --git a/tests/Api/PrestashopGetOrderStateApiTest.php b/tests/Api/PrestashopGetOrderStateApiTest.php
index 5f57199..5e58a85 100644
--- a/tests/Api/PrestashopGetOrderStateApiTest.php
+++ b/tests/Api/PrestashopGetOrderStateApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopOrderState::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(1, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(1, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(1, $result->getTemplate());
- $this->assertInstanceOf(PrestashopItem::class, $result->getTemplate()->first());
+ $this->assertCount(1, $result->template);
+ $this->assertInstanceOf(PrestashopItem::class, $result->template[0]);
}
public function testMultilang(): void
@@ -44,13 +44,13 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopOrderState::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(2, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(2, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(2, $result->getTemplate());
- $this->assertInstanceOf(PrestashopItem::class, $result->getTemplate()->first());
+ $this->assertCount(2, $result->template);
+ $this->assertInstanceOf(PrestashopItem::class, $result->template[0]);
}
public function testList(): void
@@ -64,7 +64,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopOrderStates::class, $result);
- $this->assertCount(2, $result->getOrderStates());
- $this->assertInstanceOf(PrestashopOrderState::class, $result->getOrderStates()->first());
+ $this->assertCount(2, $result->orderStates);
+ $this->assertInstanceOf(PrestashopOrderState::class, $result->orderStates[0]);
}
}
diff --git a/tests/Api/PrestashopGetProductApiTest.php b/tests/Api/PrestashopGetProductApiTest.php
index 5e4cb17..d4a7855 100644
--- a/tests/Api/PrestashopGetProductApiTest.php
+++ b/tests/Api/PrestashopGetProductApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopProduct::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(1, $result->getDeliveryInStock());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDeliveryInStock()->first());
+ $this->assertCount(1, $result->deliveryInStock);
+ $this->assertInstanceOf(PrestashopItem::class, $result->deliveryInStock[0]);
- $this->assertCount(1, $result->getDeliveryOutStock());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDeliveryOutStock()->first());
+ $this->assertCount(1, $result->deliveryOutStock);
+ $this->assertInstanceOf(PrestashopItem::class, $result->deliveryOutStock[0]);
- $this->assertCount(1, $result->getMetaDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaDescription()->first());
+ $this->assertCount(1, $result->metaDescription);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaDescription[0]);
- $this->assertCount(1, $result->getMetaKeywords());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaKeywords()->first());
+ $this->assertCount(1, $result->metaKeywords);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaKeywords[0]);
- $this->assertCount(1, $result->getMetaTitle());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaTitle()->first());
+ $this->assertCount(1, $result->metaTitle);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaTitle[0]);
- $this->assertCount(1, $result->getLinkRewrite());
- $this->assertInstanceOf(PrestashopItem::class, $result->getLinkRewrite()->first());
+ $this->assertCount(1, $result->linkRewrite);
+ $this->assertInstanceOf(PrestashopItem::class, $result->linkRewrite[0]);
- $this->assertCount(1, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(1, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(1, $result->getDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDescription()->first());
+ $this->assertCount(1, $result->description);
+ $this->assertInstanceOf(PrestashopItem::class, $result->description[0]);
- $this->assertCount(1, $result->getDescriptionShort());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDescriptionShort()->first());
+ $this->assertCount(1, $result->descriptionShort);
+ $this->assertInstanceOf(PrestashopItem::class, $result->descriptionShort[0]);
- $this->assertCount(1, $result->getAvailableNow());
- $this->assertInstanceOf(PrestashopItem::class, $result->getAvailableNow()->first());
+ $this->assertCount(1, $result->availableNow);
+ $this->assertInstanceOf(PrestashopItem::class, $result->availableNow[0]);
- $this->assertCount(1, $result->getAvailableLater());
- $this->assertInstanceOf(PrestashopItem::class, $result->getAvailableLater()->first());
+ $this->assertCount(1, $result->availableLater);
+ $this->assertInstanceOf(PrestashopItem::class, $result->availableLater[0]);
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(3, $result->getAssociations()->getCategories());
- $this->assertInstanceOf(PrestashopCategory::class, $result->getAssociations()->getCategories()->first());
+ $this->assertCount(3, $result->associations->categories);
+ $this->assertInstanceOf(PrestashopCategory::class, $result->associations->categories[0]);
- $this->assertCount(2, $result->getAssociations()->getImages());
- $this->assertInstanceOf(PrestashopImage::class, $result->getAssociations()->getImages()->first());
+ $this->assertCount(2, $result->associations->images);
+ $this->assertInstanceOf(PrestashopImage::class, $result->associations->images[0]);
- $this->assertCount(8, $result->getAssociations()->getCombinations());
- $this->assertInstanceOf(PrestashopCombination::class, $result->getAssociations()->getCombinations()->first());
+ $this->assertCount(8, $result->associations->combinations);
+ $this->assertInstanceOf(PrestashopCombination::class, $result->associations->combinations[0]);
- $this->assertCount(6, $result->getAssociations()->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getAssociations()->getProductOptionValues()->first());
+ $this->assertCount(6, $result->associations->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->associations->productOptionValues[0]);
- $this->assertCount(2, $result->getAssociations()->getProductFeatures());
- $this->assertInstanceOf(PrestashopProductFeature::class, $result->getAssociations()->getProductFeatures()->first());
+ $this->assertCount(2, $result->associations->productFeatures);
+ $this->assertInstanceOf(PrestashopProductFeature::class, $result->associations->productFeatures[0]);
- $this->assertCount(9, $result->getAssociations()->getStockAvailables());
- $this->assertInstanceOf(PrestashopStockAvailable::class, $result->getAssociations()->getStockAvailables()->first());
+ $this->assertCount(9, $result->associations->stockAvailables);
+ $this->assertInstanceOf(PrestashopStockAvailable::class, $result->associations->stockAvailables[0]);
- $this->assertCount(2, $result->getAssociations()->getProductBundle());
- $this->assertInstanceOf(PrestashopProductBundle::class, $result->getAssociations()->getProductBundle()->first());
+ $this->assertCount(2, $result->associations->productBundle);
+ $this->assertInstanceOf(PrestashopProductBundle::class, $result->associations->productBundle[0]);
}
public function testMultilang(): void
@@ -102,63 +102,63 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopProduct::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(2, $result->getDeliveryInStock());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDeliveryInStock()->first());
+ $this->assertCount(2, $result->deliveryInStock);
+ $this->assertInstanceOf(PrestashopItem::class, $result->deliveryInStock[0]);
- $this->assertCount(2, $result->getDeliveryOutStock());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDeliveryOutStock()->first());
+ $this->assertCount(2, $result->deliveryOutStock);
+ $this->assertInstanceOf(PrestashopItem::class, $result->deliveryOutStock[0]);
- $this->assertCount(2, $result->getMetaDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaDescription()->first());
+ $this->assertCount(2, $result->metaDescription);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaDescription[0]);
- $this->assertCount(2, $result->getMetaKeywords());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaKeywords()->first());
+ $this->assertCount(2, $result->metaKeywords);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaKeywords[0]);
- $this->assertCount(2, $result->getMetaTitle());
- $this->assertInstanceOf(PrestashopItem::class, $result->getMetaTitle()->first());
+ $this->assertCount(2, $result->metaTitle);
+ $this->assertInstanceOf(PrestashopItem::class, $result->metaTitle[0]);
- $this->assertCount(2, $result->getLinkRewrite());
- $this->assertInstanceOf(PrestashopItem::class, $result->getLinkRewrite()->first());
+ $this->assertCount(2, $result->linkRewrite);
+ $this->assertInstanceOf(PrestashopItem::class, $result->linkRewrite[0]);
- $this->assertCount(2, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(2, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(2, $result->getDescription());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDescription()->first());
+ $this->assertCount(2, $result->description);
+ $this->assertInstanceOf(PrestashopItem::class, $result->description[0]);
- $this->assertCount(2, $result->getDescriptionShort());
- $this->assertInstanceOf(PrestashopItem::class, $result->getDescriptionShort()->first());
+ $this->assertCount(2, $result->descriptionShort);
+ $this->assertInstanceOf(PrestashopItem::class, $result->descriptionShort[0]);
- $this->assertCount(2, $result->getAvailableNow());
- $this->assertInstanceOf(PrestashopItem::class, $result->getAvailableNow()->first());
+ $this->assertCount(2, $result->availableNow);
+ $this->assertInstanceOf(PrestashopItem::class, $result->availableNow[0]);
- $this->assertCount(2, $result->getAvailableLater());
- $this->assertInstanceOf(PrestashopItem::class, $result->getAvailableLater()->first());
+ $this->assertCount(2, $result->availableLater);
+ $this->assertInstanceOf(PrestashopItem::class, $result->availableLater[0]);
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(3, $result->getAssociations()->getCategories());
- $this->assertInstanceOf(PrestashopCategory::class, $result->getAssociations()->getCategories()->first());
+ $this->assertCount(3, $result->associations->categories);
+ $this->assertInstanceOf(PrestashopCategory::class, $result->associations->categories[0]);
- $this->assertCount(2, $result->getAssociations()->getImages());
- $this->assertInstanceOf(PrestashopImage::class, $result->getAssociations()->getImages()->first());
+ $this->assertCount(2, $result->associations->images);
+ $this->assertInstanceOf(PrestashopImage::class, $result->associations->images[0]);
- $this->assertCount(8, $result->getAssociations()->getCombinations());
- $this->assertInstanceOf(PrestashopCombination::class, $result->getAssociations()->getCombinations()->first());
+ $this->assertCount(8, $result->associations->combinations);
+ $this->assertInstanceOf(PrestashopCombination::class, $result->associations->combinations[0]);
- $this->assertCount(6, $result->getAssociations()->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getAssociations()->getProductOptionValues()->first());
+ $this->assertCount(6, $result->associations->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->associations->productOptionValues[0]);
- $this->assertCount(2, $result->getAssociations()->getProductFeatures());
- $this->assertInstanceOf(PrestashopProductFeature::class, $result->getAssociations()->getProductFeatures()->first());
+ $this->assertCount(2, $result->associations->productFeatures);
+ $this->assertInstanceOf(PrestashopProductFeature::class, $result->associations->productFeatures[0]);
- $this->assertCount(9, $result->getAssociations()->getStockAvailables());
- $this->assertInstanceOf(PrestashopStockAvailable::class, $result->getAssociations()->getStockAvailables()->first());
+ $this->assertCount(9, $result->associations->stockAvailables);
+ $this->assertInstanceOf(PrestashopStockAvailable::class, $result->associations->stockAvailables[0]);
- $this->assertCount(2, $result->getAssociations()->getProductBundle());
- $this->assertInstanceOf(PrestashopProductBundle::class, $result->getAssociations()->getProductBundle()->first());
+ $this->assertCount(2, $result->associations->productBundle);
+ $this->assertInstanceOf(PrestashopProductBundle::class, $result->associations->productBundle[0]);
}
public function testList(): void
@@ -172,7 +172,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopProducts::class, $result);
- $this->assertCount(2, $result->getProducts());
- $this->assertInstanceOf(PrestashopProduct::class, $result->getProducts()->first());
+ $this->assertCount(2, $result->products);
+ $this->assertInstanceOf(PrestashopProduct::class, $result->products[0]);
}
}
diff --git a/tests/Api/PrestashopGetProductFeatureValueApiTest.php b/tests/Api/PrestashopGetProductFeatureValueApiTest.php
index 94d8af1..87bba84 100644
--- a/tests/Api/PrestashopGetProductFeatureValueApiTest.php
+++ b/tests/Api/PrestashopGetProductFeatureValueApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopProductFeatureValue::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(1, $result->getIdFeature());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(1, $result->idFeature);
- $this->assertCount(1, $result->getValue());
- $this->assertInstanceOf(PrestashopItem::class, $result->getValue()->first());
+ $this->assertCount(1, $result->value);
+ $this->assertInstanceOf(PrestashopItem::class, $result->value[0]);
}
public function testMultilang(): void
@@ -42,11 +42,11 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopProductFeatureValue::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(1, $result->getIdFeature());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(1, $result->idFeature);
- $this->assertCount(2, $result->getValue());
- $this->assertInstanceOf(PrestashopItem::class, $result->getValue()->first());
+ $this->assertCount(2, $result->value);
+ $this->assertInstanceOf(PrestashopItem::class, $result->value[0]);
}
public function testList(): void
@@ -60,7 +60,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopProductFeatureValues::class, $result);
- $this->assertCount(2, $result->getProductFeatureValues());
- $this->assertInstanceOf(PrestashopProductFeatureValue::class, $result->getProductFeatureValues()->first());
+ $this->assertCount(2, $result->productFeatureValues);
+ $this->assertInstanceOf(PrestashopProductFeatureValue::class, $result->productFeatureValues[0]);
}
}
diff --git a/tests/Api/PrestashopGetProductOptionApiTest.php b/tests/Api/PrestashopGetProductOptionApiTest.php
index 30f010a..6d6e919 100644
--- a/tests/Api/PrestashopGetProductOptionApiTest.php
+++ b/tests/Api/PrestashopGetProductOptionApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopProductOption::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(1, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(1, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(1, $result->getPublicName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getPublicName()->first());
+ $this->assertCount(1, $result->publicName);
+ $this->assertInstanceOf(PrestashopItem::class, $result->publicName[0]);
- $this->assertCount(4, $result->getAssociations()->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getAssociations()->getProductOptionValues()->first());
+ $this->assertCount(4, $result->associations->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->associations->productOptionValues[0]);
}
public function testMultilang(): void
@@ -49,18 +49,18 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopProductOption::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(2, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(2, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
- $this->assertCount(2, $result->getPublicName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getPublicName()->first());
+ $this->assertCount(2, $result->publicName);
+ $this->assertInstanceOf(PrestashopItem::class, $result->publicName[0]);
- $this->assertInstanceOf(PrestashopAssociations::class, $result->getAssociations());
+ $this->assertInstanceOf(PrestashopAssociations::class, $result->associations);
- $this->assertCount(4, $result->getAssociations()->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getAssociations()->getProductOptionValues()->first());
+ $this->assertCount(4, $result->associations->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->associations->productOptionValues[0]);
}
public function testList(): void
@@ -74,7 +74,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopProductOptions::class, $result);
- $this->assertCount(2, $result->getProductOptions());
- $this->assertInstanceOf(PrestashopProductOption::class, $result->getProductOptions()->first());
+ $this->assertCount(2, $result->productOptions);
+ $this->assertInstanceOf(PrestashopProductOption::class, $result->productOptions[0]);
}
}
diff --git a/tests/Api/PrestashopGetProductOptionValueApiTest.php b/tests/Api/PrestashopGetProductOptionValueApiTest.php
index f5b0caf..69b317c 100644
--- a/tests/Api/PrestashopGetProductOptionValueApiTest.php
+++ b/tests/Api/PrestashopGetProductOptionValueApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopProductOptionValue::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(1, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(1, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
}
public function testMultilang(): void
@@ -41,10 +41,10 @@ public function testMultilang(): void
$this->assertInstanceOf(PrestashopProductOptionValue::class, $result);
- $this->assertEquals(1, $result->getId());
+ $this->assertEquals(1, $result->id);
- $this->assertCount(2, $result->getName());
- $this->assertInstanceOf(PrestashopItem::class, $result->getName()->first());
+ $this->assertCount(2, $result->name);
+ $this->assertInstanceOf(PrestashopItem::class, $result->name[0]);
}
public function testList(): void
@@ -58,7 +58,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopProductOptionValues::class, $result);
- $this->assertCount(2, $result->getProductOptionValues());
- $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->getProductOptionValues()->first());
+ $this->assertCount(2, $result->productOptionValues);
+ $this->assertInstanceOf(PrestashopProductOptionValue::class, $result->productOptionValues[0]);
}
}
diff --git a/tests/Api/PrestashopGetStateApiTest.php b/tests/Api/PrestashopGetStateApiTest.php
index 5c22931..e0ce590 100644
--- a/tests/Api/PrestashopGetStateApiTest.php
+++ b/tests/Api/PrestashopGetStateApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopState::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals('AA', $result->getName());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals('AA', $result->name);
}
public function testList(): void
@@ -37,7 +37,7 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopStates::class, $result);
- $this->assertCount(2, $result->getStates());
- $this->assertInstanceOf(PrestashopState::class, $result->getStates()->first());
+ $this->assertCount(2, $result->states);
+ $this->assertInstanceOf(PrestashopState::class, $result->states[0]);
}
}
diff --git a/tests/Api/PrestashopStockAvailableApiTest.php b/tests/Api/PrestashopStockAvailableApiTest.php
index dd537bc..061db6e 100644
--- a/tests/Api/PrestashopStockAvailableApiTest.php
+++ b/tests/Api/PrestashopStockAvailableApiTest.php
@@ -1,4 +1,4 @@
-assertInstanceOf(PrestashopStockAvailable::class, $result);
- $this->assertEquals(1, $result->getId());
- $this->assertEquals(42, $result->getQuantity());
+ $this->assertEquals(1, $result->id);
+ $this->assertEquals(42, $result->quantity);
}
public function testList(): void
@@ -43,17 +43,19 @@ public function testList(): void
);
$this->assertInstanceOf(PrestashopStockAvailables::class, $result);
- $this->assertCount(2, $result->getStockAvailables());
- $this->assertInstanceOf(PrestashopStockAvailable::class, $result->getStockAvailables()->first());
+ $this->assertCount(2, $result->stockAvailables);
+ $this->assertInstanceOf(PrestashopStockAvailable::class, $result->stockAvailables[0]);
}
public function testPut(): void
{
$responseInterface = $this->createMock(ResponseInterface::class);
$responseInterface
- ->method('getStatusCode')->willReturn(200);
+ ->method('getStatusCode')->willReturn(200)
+ ;
$responseInterface
- ->method('getContent')->willReturn($this->loadFixture('stock_available.json'));
+ ->method('getContent')->willReturn($this->loadFixture('stock_available.json'))
+ ;
$httpClientInterface = $this->createMock(HttpClientInterface::class);
$httpClientInterface
@@ -83,7 +85,7 @@ public function testPut(): void
->setIdProduct(6)
->setIdProductAttribute(0)
->setQuantity(42)
- ->setDependsOnStock(false)
+ ->setDependsOnStock(0)
->setOutOfStock(2)
->setIdShop(1)
->setIdShopGroup(0)