<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Address; | |||||
interface AddressFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Config; | |||||
interface TaxRateFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Config; | |||||
interface UnitFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Credit; | |||||
interface CreditHistoryFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\File; | |||||
interface DocumentFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Merchant; | |||||
interface MerchantFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderPaymentFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderProductFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderProductReductionCatalogFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderProductRefundFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderReductionCartFactoryInterface{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderReductionCreditFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderRefundFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderShopFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderStatusFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Order; | |||||
interface OrderStatusHistoryFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\PointSale; | |||||
interface PointSaleFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Product; | |||||
interface ProductCategoryFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Product; | |||||
interface ProductFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Product; | |||||
interface ProductFamilyFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||||
interface ReductionCartFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||||
interface ReductionCatalogFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||||
interface ReductionCreditFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\Section; | |||||
interface SectionFactoryInterface | |||||
{ | |||||
} |
use App\Entity\Setting\SectionSetting; | use App\Entity\Setting\SectionSetting; | ||||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | ||||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | |||||
use Lc\SovBundle\Factory\AbstractFactory; | use Lc\SovBundle\Factory\AbstractFactory; | ||||
class SectionSettingFactory extends AbstractFactory | class SectionSettingFactory extends AbstractFactory | ||||
{ | { | ||||
use MerchantFactoryTrait; | |||||
use SectionFactoryTrait; | |||||
public function create() | public function create() | ||||
{ | { | ||||
$sectionSetting = new SectionSetting(); | $sectionSetting = new SectionSetting(); | ||||
$sectionSetting->setMerchant($this->merchant); | |||||
$sectionSetting->setSection($this->section); | |||||
return $sectionSetting; | return $sectionSetting; | ||||
} | } |
<?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; | |||||
} | |||||
} |
<?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; | |||||
} | |||||
} |
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | ||||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | ||||
use Lc\SovBundle\Factory\Ticket\TicketFactory as SovTicketFactory; | use Lc\SovBundle\Factory\Ticket\TicketFactory as SovTicketFactory; | ||||
use Lc\SovBundle\Model\Ticket\TicketInterface; | |||||
class TicketFactory extends SovTicketFactory | class TicketFactory extends SovTicketFactory | ||||
{ | { | ||||
use MerchantFactoryTrait; | use MerchantFactoryTrait; | ||||
public function create() | |||||
public function create(): TicketInterface | |||||
{ | { | ||||
$ticket = parent::create(); | $ticket = parent::create(); | ||||
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\User; | |||||
interface GroupUserFactoryInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
<?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; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Factory\User; | |||||
interface VisitorFactoryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Model\Credit; | |||||
interface CreditConfigInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
use Doctrine\ORM\Mapping as ORM; | use Doctrine\ORM\Mapping as ORM; | ||||
use Lc\CaracoleBundle\Model\Address\AddressInterface; | use Lc\CaracoleBundle\Model\Address\AddressInterface; | ||||
use Lc\CaracoleBundle\Model\Config\TaxRateInterface; | use Lc\CaracoleBundle\Model\Config\TaxRateInterface; | ||||
use Lc\CaracoleBundle\Model\Credit\CreditConfigInterface; | |||||
use Lc\SovBundle\Model\Newsletter\NewsletterInterface; | use Lc\SovBundle\Model\Newsletter\NewsletterInterface; | ||||
use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface; | use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface; | ||||
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; | use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; | ||||
use EntitySettingTrait; | 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\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Config\TaxRateInterface") | ||||
* @ORM\JoinColumn(nullable=false) | * @ORM\JoinColumn(nullable=false) | ||||
return $this->getTitle() ; | 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 | public function getTaxRate(): ?TaxRateInterface | ||||
{ | { | ||||
return $this->taxRate; | return $this->taxRate; |
<?php | |||||
namespace Lc\CaracoleBundle\Model\PointSale; | |||||
interface PointSaleDayInfoInterface | |||||
{ | |||||
} |
<?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; | |||||
} | |||||
} |
*/ | */ | ||||
protected $code; | 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\OneToOne(targetEntity="Lc\CaracoleBundle\Model\Address\AddressInterface", inversedBy="pointSale", cascade={"persist", "remove"}) | ||||
* @ORM\JoinColumn(nullable=false) | * @ORM\JoinColumn(nullable=false) | ||||
public function __construct() | public function __construct() | ||||
{ | { | ||||
$this->merchants = new ArrayCollection(); | $this->merchants = new ArrayCollection(); | ||||
$this->pointSaleDayInfos = new ArrayCollection(); | |||||
$this->userPointSales = new ArrayCollection(); | $this->userPointSales = new ArrayCollection(); | ||||
} | } | ||||
return $this; | 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 | public function getAddress(): ?AddressInterface | ||||
{ | { | ||||
return $this->address; | return $this->address; |