Minor cosmetic changes
This commit is contained in:
@@ -48,6 +48,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setAppend($append)
|
public function setAppend($append)
|
||||||
{
|
{
|
||||||
$this->append = $append;
|
$this->append = $append;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -64,6 +65,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setCartItem($cartItem)
|
public function setCartItem($cartItem)
|
||||||
{
|
{
|
||||||
$this->cartItem = $cartItem;
|
$this->cartItem = $cartItem;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -80,6 +82,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setNewness($newness)
|
public function setNewness($newness)
|
||||||
{
|
{
|
||||||
$this->newness = $newness;
|
$this->newness = $newness;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,6 +99,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setProduct($product)
|
public function setProduct($product)
|
||||||
{
|
{
|
||||||
$this->product = $product;
|
$this->product = $product;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -112,6 +116,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setProductSaleElementsId($productSaleElementsId)
|
public function setProductSaleElementsId($productSaleElementsId)
|
||||||
{
|
{
|
||||||
$this->productSaleElementsId = $productSaleElementsId;
|
$this->productSaleElementsId = $productSaleElementsId;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -128,6 +133,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setQuantity($quantity)
|
public function setQuantity($quantity)
|
||||||
{
|
{
|
||||||
$this->quantity = $quantity;
|
$this->quantity = $quantity;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -145,5 +151,4 @@ class CartEvent extends ActionEvent
|
|||||||
{
|
{
|
||||||
return $this->cart;
|
return $this->cart;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -28,6 +28,7 @@ use Thelia\Core\Form\Type\TheliaType;
|
|||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\TaxEngine\TaxEngine;
|
use Thelia\TaxEngine\TaxEngine;
|
||||||
use Thelia\Model\Tax;
|
use Thelia\Model\Tax;
|
||||||
|
use Thelia\Core\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class TaxCreationForm
|
* Class TaxCreationForm
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ class Product extends BaseProduct
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the default PSE for this product.
|
* Return the default PSE for this product.
|
||||||
|
*
|
||||||
|
* @return ProductSaleElements
|
||||||
*/
|
*/
|
||||||
public function getDefaultSaleElements() {
|
public function getDefaultSaleElements() {
|
||||||
return ProductSaleElementsQuery::create()->filterByProductId($this->id)->filterByIsDefault(true)->find();
|
return ProductSaleElementsQuery::create()->filterByProductId($this->id)->filterByIsDefault(true)->find();
|
||||||
|
|||||||
Reference in New Issue
Block a user