@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Address; | |||
use App\Entity\Address\Address; | |||
use Lc\CaracoleBundle\Model\Address\AddressInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class AddressFactory extends AbstractFactory implements AddressFactoryInterface | |||
{ | |||
public function create(): AddressInterface | |||
{ | |||
$address = new Address(); | |||
return $address; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Address; | |||
interface AddressFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Config; | |||
use App\Entity\Config\TaxRate; | |||
use Lc\CaracoleBundle\Model\Config\TaxRateInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class TaxRateFactory extends AbstractFactory implements TaxRateFactoryInterface | |||
{ | |||
public function create(): TaxRateInterface | |||
{ | |||
$taxRate = new TaxRate(); | |||
return $taxRate; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Config; | |||
interface TaxRateFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Config; | |||
use App\Entity\Config\Unit; | |||
use Lc\CaracoleBundle\Model\Config\UnitInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class UnitFactory extends AbstractFactory implements UnitFactoryInterface | |||
{ | |||
public function create(): UnitInterface | |||
{ | |||
$unit = new Unit(); | |||
return $unit; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Config; | |||
interface UnitFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,19 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Credit; | |||
use App\Entity\Credit\CreditHistory; | |||
use Lc\CaracoleBundle\Factory\CreditHistory\CreditHistoryFactoryInterface; | |||
use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class CreditHistoryFactory extends AbstractFactory implements CreditHistoryFactoryInterface | |||
{ | |||
public function create(): CreditHistoryInterface | |||
{ | |||
$creditHistory = new CreditHistory(); | |||
return $creditHistory; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Credit; | |||
interface CreditHistoryFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,23 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\File; | |||
use App\Entity\File\Document; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\File\DocumentInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class DocumentFactory extends AbstractFactory implements DocumentFactoryInterface | |||
{ | |||
use MerchantFactoryTrait; | |||
public function create(): DocumentInterface | |||
{ | |||
$document = new Document(); | |||
$document->setMerchant($this->merchant); | |||
return $document; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\File; | |||
interface DocumentFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Merchant; | |||
use App\Entity\Merchant\Merchant; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class MerchantFactory extends AbstractFactory implements MerchantFactoryInterface | |||
{ | |||
public function create(): MerchantInterface | |||
{ | |||
$merchant = new Merchant(); | |||
return $merchant; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Merchant; | |||
interface MerchantFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,23 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Newsletter; | |||
use App\Entity\Newsletter\Newsletter; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\SovBundle\Model\Newsletter\NewsletterInterface; | |||
use Lc\SovBundle\Factory\Newsletter\NewsletterFactory as SovNewsletterFactory; | |||
class NewsletterFactory extends SovNewsletterFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
public function create(): NewsletterInterface | |||
{ | |||
$newsletter = parent::create(); | |||
$newsletter->setMerchant($this->merchant); | |||
return $newsletter; | |||
} | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderPayment; | |||
use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderPaymentFactory extends AbstractFactory implements OrderPaymentFactoryInterface | |||
{ | |||
public function create(): OrderPaymentInterface | |||
{ | |||
$orderPayment = new OrderPayment(); | |||
return $orderPayment; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderPaymentFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderProduct; | |||
use Lc\CaracoleBundle\Model\Order\OrderProductInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderProductFactory extends AbstractFactory implements OrderProductFactoryInterface | |||
{ | |||
public function create(): OrderProductInterface | |||
{ | |||
$orderProduct = new OrderProduct(); | |||
return $orderProduct; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderProductFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderProductReductionCatalog; | |||
use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderProductReductionCatalogFactory extends AbstractFactory implements OrderProductReductionCatalogFactoryInterface | |||
{ | |||
public function create(): OrderProductReductionCatalogInterface | |||
{ | |||
$orderProductReductionCatalog = new OrderProductReductionCatalog(); | |||
return $orderProductReductionCatalog; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderProductReductionCatalogFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderProductRefund; | |||
use Lc\CaracoleBundle\Model\Order\OrderProductRefundInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderProductRefundFactory extends AbstractFactory implements OrderProductRefundFactoryInterface | |||
{ | |||
public function create(): OrderProductRefundInterface | |||
{ | |||
$orderProductRefund = new OrderProductRefund(); | |||
return $orderProductRefund; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderProductRefundFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderReductionCart; | |||
use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderReductionCartFactory extends AbstractFactory implements OrderReductionCartFactoryInterface | |||
{ | |||
public function create(): OrderReductionCartInterface | |||
{ | |||
$orderReductionCart = new OrderReductionCart(); | |||
return $orderReductionCart; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderReductionCartFactoryInterface{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderReductionCredit; | |||
use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderReductionCreditFactory extends AbstractFactory implements OrderReductionCreditFactoryInterface | |||
{ | |||
public function create(): OrderReductionCreditInterface | |||
{ | |||
$orderReductionCredit = new OrderReductionCredit(); | |||
return $orderReductionCredit; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderReductionCreditFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderRefund; | |||
use Lc\CaracoleBundle\Model\Order\OrderRefundInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderRefundFactory extends AbstractFactory implements OrderRefundFactoryInterface | |||
{ | |||
public function create(): OrderRefundInterface | |||
{ | |||
$orderRefund = new OrderRefund(); | |||
return $orderRefund; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderRefundFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderShop; | |||
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderShopFactory extends AbstractFactory implements OrderShopFactoryInterface | |||
{ | |||
public function create(): OrderShopInterface | |||
{ | |||
$orderShop = new OrderShop(); | |||
return $orderShop; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderShopFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderStatus; | |||
use Lc\CaracoleBundle\Model\Order\OrderStatusInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderStatusFactory extends AbstractFactory implements OrderStatusFactoryInterface | |||
{ | |||
public function create(): OrderStatusInterface | |||
{ | |||
$orderStatus = new OrderStatus(); | |||
return $orderStatus; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderStatusFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderStatusHistory; | |||
use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderStatusHistoryFactory extends AbstractFactory implements OrderStatusHistoryFactoryInterface | |||
{ | |||
public function create(): OrderStatusHistoryInterface | |||
{ | |||
$orderStatusHistory = new OrderStatusHistory(); | |||
return $orderStatusHistory; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderStatusHistoryFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\PointSale; | |||
use App\Entity\PointSale\PointSale; | |||
use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class PointSaleFactory extends AbstractFactory implements PointSaleFactoryInterface | |||
{ | |||
public function create(): PointSaleInterface | |||
{ | |||
$pointSale = new PointSale(); | |||
return $pointSale; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\PointSale; | |||
interface PointSaleFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
use App\Entity\Product\ProductCategory; | |||
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ProductCategoryFactory extends AbstractFactory implements ProductCategoryFactoryInterface | |||
{ | |||
public function create(): ProductCategoryInterface | |||
{ | |||
$productCategory = new ProductCategory(); | |||
return $productCategory; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
interface ProductCategoryFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
use App\Entity\Product\Product; | |||
use Lc\CaracoleBundle\Model\Product\ProductInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ProductFactory extends AbstractFactory implements ProductFactoryInterface | |||
{ | |||
public function create(): ProductInterface | |||
{ | |||
$product = new Product(); | |||
return $product; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
interface ProductFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
use App\Entity\Product\ProductFamily; | |||
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ProductFamilyFactory extends AbstractFactory implements ProductFamilyFactoryInterface | |||
{ | |||
public function create(): ProductFamilyInterface | |||
{ | |||
$productFamily = new ProductFamily(); | |||
return $productFamily; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
interface ProductFamilyFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
use App\Entity\Reduction\ReductionCart; | |||
use Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ReductionCartFactory extends AbstractFactory implements ReductionCartFactoryInterface | |||
{ | |||
public function create(): ReductionCartInterface | |||
{ | |||
$reductionCart = new ReductionCart(); | |||
return $reductionCart; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
interface ReductionCartFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
use App\Entity\Reduction\ReductionCatalog; | |||
use Lc\CaracoleBundle\Model\Reduction\ReductionCatalogInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ReductionCatalogFactory extends AbstractFactory implements ReductionCatalogFactoryInterface | |||
{ | |||
public function create(): ReductionCatalogInterface | |||
{ | |||
$reductionCatalog = new ReductionCatalog(); | |||
return $reductionCatalog; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
interface ReductionCatalogFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
use App\Entity\Reduction\ReductionCredit; | |||
use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ReductionCreditFactory extends AbstractFactory implements ReductionCreditFactoryInterface | |||
{ | |||
public function create(): ReductionCreditInterface | |||
{ | |||
$reductionCredit = new ReductionCredit(); | |||
return $reductionCredit; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
interface ReductionCreditFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Section; | |||
use App\Entity\Section\Section; | |||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class SectionFactory extends AbstractFactory implements SectionFactoryInterface | |||
{ | |||
public function create(): SectionInterface | |||
{ | |||
$section = new Section(); | |||
return $section; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Section; | |||
interface SectionFactoryInterface | |||
{ | |||
} |
@@ -4,17 +4,18 @@ namespace Lc\CaracoleBundle\Factory\Setting; | |||
use App\Entity\Setting\SectionSetting; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class SectionSettingFactory extends AbstractFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
use SectionFactoryTrait; | |||
public function create() | |||
{ | |||
$sectionSetting = new SectionSetting(); | |||
$sectionSetting->setMerchant($this->merchant); | |||
$sectionSetting->setSection($this->section); | |||
return $sectionSetting; | |||
} |
@@ -0,0 +1,21 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Site; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\SovBundle\Factory\Site\NewsFactory as SovNewsFactory; | |||
use Lc\SovBundle\Model\Site\NewsInterface; | |||
class NewsFactory extends SovNewsFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
public function create(): NewsInterface | |||
{ | |||
$news = parent::create(); | |||
$news->setMerchant($this->merchant); | |||
return $news; | |||
} | |||
} |
@@ -0,0 +1,23 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Site; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | |||
use Lc\SovBundle\Factory\Site\PageFactory as SovPageFactory; | |||
use Lc\SovBundle\Model\Site\PageInterface; | |||
class PageFactory extends SovPageFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
use SectionFactoryTrait; | |||
public function create(): PageInterface | |||
{ | |||
$page = parent::create(); | |||
$page->setMerchant($this->merchant); | |||
return $page; | |||
} | |||
} |
@@ -5,12 +5,13 @@ namespace Lc\CaracoleBundle\Factory\Ticket; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | |||
use Lc\SovBundle\Factory\Ticket\TicketFactory as SovTicketFactory; | |||
use Lc\SovBundle\Model\Ticket\TicketInterface; | |||
class TicketFactory extends SovTicketFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
public function create() | |||
public function create(): TicketInterface | |||
{ | |||
$ticket = parent::create(); | |||
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
use App\Entity\User\GroupUser; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
use Lc\SovBundle\Model\User\GroupUserInterface; | |||
class GroupUserFactory extends AbstractFactory implements GroupUserFactoryInterface | |||
{ | |||
public function create(): GroupUserInterface | |||
{ | |||
$groupUser = new GroupUser(); | |||
return $groupUser; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
interface GroupUserFactoryInterface | |||
{ | |||
} |
@@ -0,0 +1,16 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
use Lc\SovBundle\Factory\User\UserFactory as SovUserFactory; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
class UserFactory extends SovUserFactory | |||
{ | |||
public function create(): UserInterface | |||
{ | |||
$user = parent::create(); | |||
return $user; | |||
} | |||
} |
@@ -0,0 +1,18 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
use App\Entity\User\Visitor; | |||
use Lc\CaracoleBundle\Model\User\VisitorInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class VisitorFactory extends AbstractFactory implements VisitorFactoryInterface | |||
{ | |||
public function create(): VisitorInterface | |||
{ | |||
$visitor = new Visitor(); | |||
return $visitor; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
interface VisitorFactoryInterface | |||
{ | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Model\Credit; | |||
interface CreditConfigInterface | |||
{ | |||
} |
@@ -1,101 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Model\Credit; | |||
use Doctrine\ORM\Mapping as ORM; | |||
/** | |||
* @ORM\MappedSuperclass() | |||
*/ | |||
abstract class CreditConfigModel | |||
{ | |||
/** | |||
* @ORM\Column(type="boolean") | |||
*/ | |||
protected $active; | |||
/** | |||
* @ORM\Column(type="float", nullable=true) | |||
*/ | |||
protected $limitAmount; | |||
/** | |||
* @ORM\Column(type="float", nullable=true) | |||
*/ | |||
protected $limitReminder; | |||
/** | |||
* @ORM\Column(type="string", length=31, nullable=true) | |||
*/ | |||
protected $behavior; | |||
/** | |||
* @ORM\Column(type="boolean", nullable=true) | |||
*/ | |||
protected $processOrderCheckedDefault; | |||
public function __toString() | |||
{ | |||
return ''; | |||
} | |||
public function getActive(): ?bool | |||
{ | |||
return $this->active; | |||
} | |||
public function setActive(bool $active): self | |||
{ | |||
$this->active = $active; | |||
return $this; | |||
} | |||
public function getLimitAmount(): ?float | |||
{ | |||
return $this->limitAmount; | |||
} | |||
public function setLimitAmount(?float $limitAmount): self | |||
{ | |||
$this->limitAmount = $limitAmount; | |||
return $this; | |||
} | |||
public function getLimitReminder(): ?float | |||
{ | |||
return $this->limitReminder; | |||
} | |||
public function setLimitReminder(?float $limitReminder): self | |||
{ | |||
$this->limitReminder = $limitReminder; | |||
return $this; | |||
} | |||
public function getBehavior(): ?string | |||
{ | |||
return $this->behavior; | |||
} | |||
public function setBehavior(?string $behavior): self | |||
{ | |||
$this->behavior = $behavior; | |||
return $this; | |||
} | |||
public function getProcessOrderCheckedDefault(): ?bool | |||
{ | |||
return $this->processOrderCheckedDefault; | |||
} | |||
public function setProcessOrderCheckedDefault(?bool $processOrderCheckedDefault): self | |||
{ | |||
$this->processOrderCheckedDefault = $processOrderCheckedDefault; | |||
return $this; | |||
} | |||
} |
@@ -7,7 +7,6 @@ use Doctrine\Common\Collections\Collection; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\CaracoleBundle\Model\Address\AddressInterface; | |||
use Lc\CaracoleBundle\Model\Config\TaxRateInterface; | |||
use Lc\CaracoleBundle\Model\Credit\CreditConfigInterface; | |||
use Lc\SovBundle\Model\Newsletter\NewsletterInterface; | |||
use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface; | |||
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; | |||
@@ -27,12 +26,6 @@ abstract class MerchantModel extends AbstractFullEntity | |||
use EntitySettingTrait; | |||
/** | |||
* @ORM\OneToOne(targetEntity="Lc\CaracoleBundle\Model\Credit\CreditConfigInterface", cascade={"persist", "remove"}) | |||
* @ORM\JoinColumn(nullable=true) | |||
*/ | |||
protected $creditConfig; | |||
/** | |||
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Config\TaxRateInterface") | |||
* @ORM\JoinColumn(nullable=false) | |||
@@ -101,18 +94,6 @@ abstract class MerchantModel extends AbstractFullEntity | |||
return $this->getTitle() ; | |||
} | |||
public function getCreditConfig(): ?CreditConfigInterface | |||
{ | |||
return $this->creditConfig; | |||
} | |||
public function setCreditConfig(CreditConfigInterface $creditConfig): self | |||
{ | |||
$this->creditConfig = $creditConfig; | |||
return $this; | |||
} | |||
public function getTaxRate(): ?TaxRateInterface | |||
{ | |||
return $this->taxRate; |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Model\PointSale; | |||
interface PointSaleDayInfoInterface | |||
{ | |||
} |
@@ -1,81 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Model\PointSale; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\SovBundle\Doctrine\Pattern\AbstractLightEntity; | |||
/** | |||
* @ORM\MappedSuperclass() | |||
*/ | |||
abstract class PointSaleDayInfoModel extends AbstractLightEntity | |||
{ | |||
/** | |||
* @ORM\Column(type="boolean") | |||
*/ | |||
protected $active; | |||
/** | |||
* @ORM\Column(type="smallint") | |||
*/ | |||
protected $day; | |||
/** | |||
* @ORM\Column(type="text", nullable=true) | |||
*/ | |||
protected $description; | |||
/** | |||
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\PointSale\PointSaleInterface", inversedBy="pointSaleDayInfos") | |||
* @ORM\JoinColumn(nullable=false) | |||
*/ | |||
protected $pointSale; | |||
public function getActive(): ?bool | |||
{ | |||
return $this->active; | |||
} | |||
public function setActive(bool $active): self | |||
{ | |||
$this->active = $active; | |||
return $this; | |||
} | |||
public function getDay(): ?int | |||
{ | |||
return $this->day; | |||
} | |||
public function setDay(int $day): self | |||
{ | |||
$this->day = $day; | |||
return $this; | |||
} | |||
public function getDescription(): ?string | |||
{ | |||
return $this->description; | |||
} | |||
public function setDescription(?string $description): self | |||
{ | |||
$this->description = $description; | |||
return $this; | |||
} | |||
public function getPointSale(): ?PointSaleInterface | |||
{ | |||
return $this->pointSale; | |||
} | |||
public function setPointSale(?PointSaleInterface $pointSale): self | |||
{ | |||
$this->pointSale = $pointSale; | |||
return $this; | |||
} | |||
} |
@@ -32,11 +32,6 @@ abstract class PointSaleModel extends AbstractFullEntity implements FilterMultip | |||
*/ | |||
protected $code; | |||
/** | |||
* @ORM\OneToMany(targetEntity="Lc\CaracoleBundle\Model\PointSale\PointSaleDayInfoInterface", mappedBy="pointSale", orphanRemoval=true) | |||
*/ | |||
protected $pointSaleDayInfos; | |||
/** | |||
* @ORM\OneToOne(targetEntity="Lc\CaracoleBundle\Model\Address\AddressInterface", inversedBy="pointSale", cascade={"persist", "remove"}) | |||
* @ORM\JoinColumn(nullable=false) | |||
@@ -52,7 +47,6 @@ abstract class PointSaleModel extends AbstractFullEntity implements FilterMultip | |||
public function __construct() | |||
{ | |||
$this->merchants = new ArrayCollection(); | |||
$this->pointSaleDayInfos = new ArrayCollection(); | |||
$this->userPointSales = new ArrayCollection(); | |||
} | |||
@@ -104,37 +98,6 @@ abstract class PointSaleModel extends AbstractFullEntity implements FilterMultip | |||
return $this; | |||
} | |||
/** | |||
* @return Collection|PointSaleDayInfoInterface[] | |||
*/ | |||
public function getPointSaleDayInfos(): Collection | |||
{ | |||
return $this->pointSaleDayInfos; | |||
} | |||
public function addPointSaleDayInfo(PointSaleDayInfoInterface $pointSaleDayInfo): self | |||
{ | |||
if (!$this->pointSaleDayInfos->contains($pointSaleDayInfo)) { | |||
$this->pointSaleDayInfos[] = $pointSaleDayInfo; | |||
$pointSaleDayInfo->setPointSale($this); | |||
} | |||
return $this; | |||
} | |||
public function removePointSaleDayInfo(PointSaleDayInfoInterface $pointSaleDayInfo): self | |||
{ | |||
if ($this->pointSaleDayInfos->contains($pointSaleDayInfo)) { | |||
$this->pointSaleDayInfos->removeElement($pointSaleDayInfo); | |||
// set the owning side to null (unless already changed) | |||
if ($pointSaleDayInfo->getPointSale() === $this) { | |||
$pointSaleDayInfo->setPointSale(null); | |||
} | |||
} | |||
return $this; | |||
} | |||
public function getAddress(): ?AddressInterface | |||
{ | |||
return $this->address; |