forked from BitBagCommerce/SyliusCmsPlugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPageRepositoryInterface.php
executable file
·41 lines (29 loc) · 1.38 KB
/
PageRepositoryInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/*
* This file has been created by developers from BitBag.
* Feel free to contact us once you face any issues or want to start
* another great project.
* You can find more information about us on https://bitbag.shop and write us
* an email on [email protected].
*/
declare(strict_types=1);
namespace BitBag\SyliusCmsPlugin\Repository;
use BitBag\SyliusCmsPlugin\Entity\PageInterface;
use Doctrine\ORM\QueryBuilder;
use Sylius\Component\Core\Model\ProductInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;
interface PageRepositoryInterface extends RepositoryInterface
{
public function createListQueryBuilder(string $localeCode): QueryBuilder;
public function findEnabled(bool $enabled): array;
public function findOneEnabledByCode(string $code, ?string $localeCode): ?PageInterface;
public function findOneEnabledBySlugAndChannelCode(
string $slug,
?string $localeCode,
string $channelCode
): ?PageInterface;
public function createShopListQueryBuilder(string $sectionCode, string $channelCode): QueryBuilder;
public function findBySectionCode(string $sectionCode, ?string $localeCode): array;
public function findByProduct(ProductInterface $product, string $channelCode): array;
public function findByProductAndSectionCode(ProductInterface $product, string $sectionCode, string $channelCode): array;
}