Des modules ajoutés et mise en page du CSS

This commit is contained in:
2021-01-20 12:37:48 +01:00
parent ae363c7447
commit 9ae46f8c88
409 changed files with 35050 additions and 6579 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace PayPal\Model;
use PayPal\Model\Base\PaypalCart as BasePaypalCart;
use Propel\Runtime\Connection\ConnectionInterface;
use Propel\Runtime\Exception\PropelException;
use Thelia\Model\Cart;
use Thelia\Model\CartQuery;
class PaypalCart extends BasePaypalCart
{
/**
* Get the associated ChildCart object
*
* @param ConnectionInterface $con Optional Connection object.
* @return Cart The associated ChildCart object.
* @throws PropelException
*/
public function getCart(ConnectionInterface $con = null)
{
if ($this->aCart === null && ($this->id !== null)) {
$this->aCart = CartQuery::create()->findPk($this->id, $con);
}
return $this->aCart;
}
/**
* Declares an association between this object and a ChildCart object.
*
* @param Cart $cart
* @return \PayPal\Model\PaypalCart The current object (for fluent API support)
* @throws PropelException
*/
public function setCart(Cart $cart = null)
{
if ($cart === null) {
$this->setId(NULL);
} else {
$this->setId($cart->getId());
}
$this->aCart = $cart;
return $this;
}
}