From af47399f09b86988b7d65912d45ceeeffe09fd7a Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Fri, 24 Jan 2014 15:19:16 +0100 Subject: [PATCH] Minor cosmetic changes --- core/lib/Thelia/Core/Event/Cart/CartEvent.php | 9 +++++++-- core/lib/Thelia/Form/TaxCreationForm.php | 1 + core/lib/Thelia/Model/Product.php | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Core/Event/Cart/CartEvent.php b/core/lib/Thelia/Core/Event/Cart/CartEvent.php index 4e1ed304d..b62f18f86 100644 --- a/core/lib/Thelia/Core/Event/Cart/CartEvent.php +++ b/core/lib/Thelia/Core/Event/Cart/CartEvent.php @@ -48,6 +48,7 @@ class CartEvent extends ActionEvent public function setAppend($append) { $this->append = $append; + return $this; } /** @@ -64,6 +65,7 @@ class CartEvent extends ActionEvent public function setCartItem($cartItem) { $this->cartItem = $cartItem; + return $this; } /** @@ -80,6 +82,7 @@ class CartEvent extends ActionEvent public function setNewness($newness) { $this->newness = $newness; + return $this; } /** @@ -96,6 +99,7 @@ class CartEvent extends ActionEvent public function setProduct($product) { $this->product = $product; + return $this; } /** @@ -112,6 +116,7 @@ class CartEvent extends ActionEvent public function setProductSaleElementsId($productSaleElementsId) { $this->productSaleElementsId = $productSaleElementsId; + return $this; } /** @@ -128,6 +133,7 @@ class CartEvent extends ActionEvent public function setQuantity($quantity) { $this->quantity = $quantity; + return $this; } /** @@ -145,5 +151,4 @@ class CartEvent extends ActionEvent { return $this->cart; } - -} +} \ No newline at end of file diff --git a/core/lib/Thelia/Form/TaxCreationForm.php b/core/lib/Thelia/Form/TaxCreationForm.php index 6ff0cc81e..d3483aa4e 100644 --- a/core/lib/Thelia/Form/TaxCreationForm.php +++ b/core/lib/Thelia/Form/TaxCreationForm.php @@ -28,6 +28,7 @@ use Thelia\Core\Form\Type\TheliaType; use Thelia\Core\Translation\Translator; use Thelia\TaxEngine\TaxEngine; use Thelia\Model\Tax; +use Thelia\Core\HttpFoundation\Request; /** * Class TaxCreationForm diff --git a/core/lib/Thelia/Model/Product.php b/core/lib/Thelia/Model/Product.php index 12b98c890..5bcc56b46 100644 --- a/core/lib/Thelia/Model/Product.php +++ b/core/lib/Thelia/Model/Product.php @@ -55,6 +55,8 @@ class Product extends BaseProduct /** * Return the default PSE for this product. + * + * @return ProductSaleElements */ public function getDefaultSaleElements() { return ProductSaleElementsQuery::create()->filterByProductId($this->id)->filterByIsDefault(true)->find();