@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class AddressRepositoryQuery extends AbstractRepositoryQuery implements AddressRepositoryQueryInterface | |||
class AddressRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
interface AddressRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
class AddressStore implements AddressStoreInterface | |||
class AddressStore | |||
{ | |||
protected AddressRepositoryQueryInterface $query; | |||
protected AddressRepositoryQuery $query; | |||
public function __construct(AddressRepositoryQueryInterface $query) | |||
public function __construct(AddressRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
interface AddressStoreInterface | |||
{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Config; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class TaxRateRepositoryQuery extends AbstractRepositoryQuery implements TaxRateRepositoryQueryInterface | |||
class TaxRateRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(TaxRateRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface TaxRateRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
class TaxRateStore implements TaxRateStoreInterface | |||
class TaxRateStore | |||
{ | |||
protected TaxRateRepositoryQueryInterface $query; | |||
protected TaxRateRepositoryQuery $query; | |||
public function __construct(TaxRateRepositoryQueryInterface $query) | |||
public function __construct(TaxRateRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface TaxRateStoreInterface | |||
{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Config; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class UnitRepositoryQuery extends AbstractRepositoryQuery implements UnitRepositoryQueryInterface | |||
class UnitRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(UnitRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface UnitRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
class UnitStore implements UnitStoreInterface | |||
class UnitStore | |||
{ | |||
protected UnitRepositoryQueryInterface $query; | |||
protected UnitRepositoryQuery $query; | |||
public function __construct(UnitRepositoryQueryInterface $query) | |||
public function __construct(UnitRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface UnitStoreInterface | |||
{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Credit; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class CreditHistoryRepositoryQuery extends AbstractRepositoryQuery implements CreditHistoryRepositoryQueryInterface | |||
class CreditHistoryRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(CreditHistoryRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
interface CreditHistoryRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
class CreditHistoryStore implements CreditHistoryStoreInterface | |||
class CreditHistoryStore | |||
{ | |||
protected CreditHistoryRepositoryQueryInterface $query; | |||
protected CreditHistoryRepositoryQuery $query; | |||
public function __construct(CreditHistoryRepositoryQueryInterface $query) | |||
public function __construct(CreditHistoryRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
interface CreditHistoryStoreInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class DocumentRepositoryQuery extends AbstractRepositoryQuery implements DocumentRepositoryQueryInterface | |||
class DocumentRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
interface DocumentRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
class DocumentStore implements DocumentStoreInterface | |||
class DocumentStore | |||
{ | |||
protected DocumentRepositoryQueryInterface $query; | |||
protected DocumentRepositoryQuery $query; | |||
public function __construct(DocumentRepositoryQueryInterface $query) | |||
public function __construct(DocumentRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
interface DocumentStoreInterface | |||
{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Merchant; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class MerchantRepositoryQuery extends AbstractRepositoryQuery implements MerchantRepositoryQueryInterface | |||
class MerchantRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(MerchantRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
interface MerchantRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
class MerchantStore implements MerchantStoreInterface | |||
class MerchantStore | |||
{ | |||
protected MerchantRepositoryQueryInterface $query; | |||
protected MerchantRepositoryQuery $query; | |||
public function __construct(MerchantRepositoryQueryInterface $query) | |||
public function __construct(MerchantRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
interface MerchantStoreInterface | |||
{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderPaymentRepositoryQuery extends AbstractRepositoryQuery implements OrderPaymentRepositoryQueryInterface | |||
class OrderPaymentRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderPaymentRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderPaymentRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderPaymentStore implements OrderPaymentStoreInterface | |||
class OrderPaymentStore | |||
{ | |||
protected OrderPaymentRepositoryQueryInterface $query; | |||
protected OrderPaymentRepositoryQuery $query; | |||
public function __construct(OrderPaymentRepositoryQueryInterface $query) | |||
public function __construct(OrderPaymentRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderPaymentStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderProductReductionCatalogRepositoryQuery extends AbstractRepositoryQuery implements OrderProductReductionCatalogRepositoryQueryInterface | |||
class OrderProductReductionCatalogRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderProductReductionCatalogRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductReductionCatalogRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductReductionCatalogStore implements OrderProductReductionCatalogStoreInterface | |||
class OrderProductReductionCatalogStore | |||
{ | |||
protected OrderProductReductionCatalogRepositoryQueryInterface $query; | |||
protected OrderProductReductionCatalogRepositoryQuery $query; | |||
public function __construct(OrderProductReductionCatalogRepositoryQueryInterface $query) | |||
public function __construct(OrderProductReductionCatalogRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductReductionCatalogStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderProductRefundRepositoryQuery extends AbstractRepositoryQuery implements OrderProductRefundRepositoryQueryInterface | |||
class OrderProductRefundRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderProductRefundRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductRefundRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductRefundStore implements OrderProductRefundStoreInterface | |||
class OrderProductRefundStore | |||
{ | |||
protected OrderProductRefundRepositoryQueryInterface $query; | |||
protected OrderProductRefundRepositoryQuery $query; | |||
public function __construct(OrderProductRefundRepositoryQueryInterface $query) | |||
public function __construct(OrderProductRefundRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductRefundStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderProductRepositoryQuery extends AbstractRepositoryQuery implements OrderProductRepositoryQueryInterface | |||
class OrderProductRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderProductRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductStore implements OrderProductStoreInterface | |||
class OrderProductStore | |||
{ | |||
protected OrderProductRepositoryQueryInterface $query; | |||
protected OrderProductRepositoryQuery $query; | |||
public function __construct(OrderProductRepositoryQueryInterface $query) | |||
public function __construct(OrderProductRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderReductionCartRepositoryQuery extends AbstractRepositoryQuery implements OrderReductionCartRepositoryQueryInterface | |||
class OrderReductionCartRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderReductionCartRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCartRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderReductionCartStore implements OrderReductionCartStoreInterface | |||
class OrderReductionCartStore | |||
{ | |||
protected OrderReductionCartRepositoryQueryInterface $query; | |||
protected OrderReductionCartRepositoryQuery $query; | |||
public function __construct(OrderReductionCartRepositoryQueryInterface $query) | |||
public function __construct(OrderReductionCartRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCartStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderReductionCreditRepositoryQuery extends AbstractRepositoryQuery implements OrderReductionCreditRepositoryQueryInterface | |||
class OrderReductionCreditRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderReductionCreditRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCreditRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderReductionCreditStore implements OrderReductionCreditStoreInterface | |||
class OrderReductionCreditStore | |||
{ | |||
protected OrderReductionCreditRepositoryQueryInterface $query; | |||
protected OrderReductionCreditRepositoryQuery $query; | |||
public function __construct(OrderReductionCreditRepositoryQueryInterface $query) | |||
public function __construct(OrderReductionCreditRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCreditStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderRefundRepositoryQuery extends AbstractRepositoryQuery implements OrderRefundRepositoryQueryInterface | |||
class OrderRefundRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderRefundRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderRefundRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderRefundStore implements OrderRefundStoreInterface | |||
class OrderRefundStore | |||
{ | |||
protected OrderRefundRepositoryQueryInterface $query; | |||
protected OrderRefundRepositoryQuery $query; | |||
public function __construct(OrderRefundRepositoryQueryInterface $query) | |||
public function __construct(OrderRefundRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderRefundStoreInterface{ | |||
} |
@@ -7,7 +7,7 @@ use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\CaracoleBundle\Repository\SectionRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderShopRepositoryQuery extends AbstractRepositoryQuery implements OrderShopRepositoryQueryInterface | |||
class OrderShopRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
use SectionRepositoryQueryTrait; |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderShopRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderShopStore implements OrderShopStoreInterface | |||
class OrderShopStore | |||
{ | |||
protected OrderShopRepositoryQueryInterface $query; | |||
protected OrderShopRepositoryQuery $query; | |||
public function __construct(OrderShopRepositoryQueryInterface $query) | |||
public function __construct(OrderShopRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderShopStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderStatusHistoryRepositoryQuery extends AbstractRepositoryQuery implements OrderStatusHistoryRepositoryQueryInterface | |||
class OrderStatusHistoryRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderStatusHistoryRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusHistoryRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderStatusHistoryStore implements OrderStatusHistoryStoreInterface | |||
class OrderStatusHistoryStore | |||
{ | |||
protected OrderStatusHistoryRepositoryQueryInterface $query; | |||
protected OrderStatusHistoryRepositoryQuery $query; | |||
public function __construct(OrderStatusHistoryRepositoryQueryInterface $query) | |||
public function __construct(OrderStatusHistoryRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusHistoryStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Order; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class OrderStatusRepositoryQuery extends AbstractRepositoryQuery implements OrderStatusRepositoryQueryInterface | |||
class OrderStatusRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(OrderStatusRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderStatusStore implements OrderStatusStoreInterface | |||
class OrderStatusStore | |||
{ | |||
protected OrderStatusRepositoryQueryInterface $query; | |||
protected OrderStatusRepositoryQuery $query; | |||
public function __construct(OrderStatusRepositoryQueryInterface $query) | |||
public function __construct(OrderStatusRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusStoreInterface{ | |||
} |
@@ -7,7 +7,7 @@ use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class PointSaleRepositoryQuery extends AbstractRepositoryQuery implements PointSaleRepositoryQueryInterface | |||
class PointSaleRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(PointSaleRepository $repository, PaginatorInterface $paginator) |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
interface PointSaleRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
class PointSaleStore implements PointSaleStoreInterface | |||
class PointSaleStore | |||
{ | |||
protected PointSaleRepositoryQueryInterface $query; | |||
protected PointSaleRepositoryQuery $query; | |||
public function __construct(PointSaleRepositoryQueryInterface $query) | |||
public function __construct(PointSaleRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
interface PointSaleStoreInterface{ | |||
} |
@@ -7,7 +7,7 @@ use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\CaracoleBundle\Repository\SectionRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class ProductCategoryRepositoryQuery extends AbstractRepositoryQuery implements ProductCategoryRepositoryQueryInterface | |||
class ProductCategoryRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
use SectionRepositoryQueryTrait; |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductCategoryRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductCategoryStore implements ProductCategoryStoreInterface | |||
class ProductCategoryStore | |||
{ | |||
protected ProductCategoryRepositoryQueryInterface $query; | |||
protected ProductCategoryRepositoryQuery $query; | |||
public function __construct(ProductCategoryRepositoryQueryInterface $query) | |||
public function __construct(ProductCategoryRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductCategoryStoreInterface{ | |||
} |
@@ -7,7 +7,7 @@ use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\CaracoleBundle\Repository\SectionRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class ProductFamilyRepositoryQuery extends AbstractRepositoryQuery implements ProductFamilyRepositoryQueryInterface | |||
class ProductFamilyRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
use SectionRepositoryQueryTrait; |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductFamilyRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductFamilyStore implements ProductFamilyStoreInterface | |||
class ProductFamilyStore | |||
{ | |||
protected ProductFamilyRepositoryQueryInterface $query; | |||
protected ProductFamilyRepositoryQuery $query; | |||
public function __construct(ProductFamilyRepositoryQueryInterface $query) | |||
public function __construct(ProductFamilyRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductFamilyStoreInterface{ | |||
} |
@@ -5,7 +5,7 @@ namespace Lc\CaracoleBundle\Repository\Product; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class ProductRepositoryQuery extends AbstractRepositoryQuery implements ProductRepositoryQueryInterface | |||
class ProductRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
public function __construct(ProductRepository $repository, PaginatorInterface $paginator) | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductStore implements ProductStoreInterface | |||
class ProductStore | |||
{ | |||
protected ProductRepositoryQueryInterface $query; | |||
protected ProductRepositoryQuery $query; | |||
public function __construct(ProductRepositoryQueryInterface $query) | |||
public function __construct(ProductRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductStoreInterface{ | |||
} |
@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class ReductionCartRepositoryQuery extends AbstractRepositoryQuery implements ReductionCartRepositoryQueryInterface | |||
class ReductionCartRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
interface ReductionCartRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
class ReductionCartStore implements ReductionCartStoreInterface | |||
class ReductionCartStore | |||
{ | |||
protected ReductionCartRepositoryQueryInterface $query; | |||
protected ReductionCartRepositoryQuery $query; | |||
public function __construct(ReductionCartRepositoryQueryInterface $query) | |||
public function __construct(ReductionCartRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
interface ReductionCartStoreInterface{ | |||
} |
@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class ReductionCatalogRepositoryQuery extends AbstractRepositoryQuery implements ReductionCatalogRepositoryQueryInterface | |||
class ReductionCatalogRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
interface ReductionCatalogRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
class ReductionCatalogStore implements ReductionCatalogStoreInterface | |||
class ReductionCatalogStore | |||
{ | |||
protected ReductionCatalogRepositoryQueryInterface $query; | |||
protected ReductionCatalogRepositoryQuery $query; | |||
public function __construct(ReductionCatalogRepositoryQueryInterface $query) | |||
public function __construct(ReductionCatalogRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
interface ReductionCatalogStoreInterface{ | |||
} |
@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class ReductionCreditRepositoryQuery extends AbstractRepositoryQuery implements ReductionCreditRepositoryQueryInterface | |||
class ReductionCreditRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
interface ReductionCreditRepositoryQueryInterface{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
class ReductionCreditStore implements ReductionCreditStoreInterface | |||
class ReductionCreditStore | |||
{ | |||
protected ReductionCreditRepositoryQueryInterface $query; | |||
protected ReductionCreditRepositoryQuery $query; | |||
public function __construct(ReductionCreditRepositoryQueryInterface $query) | |||
public function __construct(ReductionCreditRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
interface ReductionCreditStoreInterface{ | |||
} |
@@ -2,26 +2,44 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reminder; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | |||
use Lc\SovBundle\Repository\Reminder\ReminderStore as SovReminderStore; | |||
class ReminderStore extends SovReminderStore | |||
{ | |||
protected MerchantInterface $merchant; | |||
protected SectionInterface $section; | |||
public function get($params = []) | |||
public function setMerchant(MerchantInterface $merchant) | |||
{ | |||
$query = $this->query->create(); | |||
$this->merchant = $merchant; | |||
$query->filterBase($params) ; | |||
return $this; | |||
} | |||
public function setSection(SectionInterface $section) | |||
{ | |||
$this->section = $section; | |||
return $this; | |||
} | |||
public function get($params = [], $query = null) | |||
{ | |||
if(is_null($query)) { | |||
$query = $this->query->create(); | |||
} | |||
if(array_key_exists('merchant', $params)) { | |||
$query->filterByMerchant($params['merchant']); | |||
if($this->merchant) { | |||
$query->filterByMerchant($this->merchant); | |||
} | |||
if(array_key_exists('section', $params)) { | |||
$query->filterBySection($params['section']); | |||
if($this->section) { | |||
$query->filterBySection($this->section); | |||
} | |||
return $query->find(); | |||
return parent::get($params, $query); | |||
} | |||
} |
@@ -5,11 +5,6 @@ namespace Lc\CaracoleBundle\Repository\Reminder; | |||
use Lc\SovBundle\Repository\Reminder\ReminderStore as SovReminderStore; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
/** | |||
* class ReminderStore. | |||
* | |||
* @author Simon Vieille <simon@deblan.fr> | |||
*/ | |||
class TicketStore extends SovReminderStore | |||
{ | |||
protected MerchantInterface $merchant; |
@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class SectionRepositoryQuery extends AbstractRepositoryQuery implements SectionRepositoryQueryInterface | |||
class SectionRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Section; | |||
interface SectionRepositoryQueryInterface | |||
{ | |||
} |
@@ -2,11 +2,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Section; | |||
class SectionStore implements SectionStoreInterface | |||
class SectionStore | |||
{ | |||
protected SectionRepositoryQueryInterface $query; | |||
protected SectionRepositoryQuery $query; | |||
public function __construct(SectionRepositoryQueryInterface $query) | |||
public function __construct(SectionRepositoryQuery $query) | |||
{ | |||
$this->query = $query; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Section; | |||
interface SectionStoreInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||
class MerchantSettingRepositoryQuery extends AbstractRepositoryQuery implements MerchantSettingRepositoryQueryInterface | |||
class MerchantSettingRepositoryQuery extends AbstractRepositoryQuery | |||
{ | |||
use MerchantRepositoryQueryTrait; | |||
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Setting; | |||
interface MerchantSettingRepositoryQueryInterface{ | |||
} |