-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathBlockRepositoryInterface.php
More file actions
executable file
·34 lines (26 loc) · 1.02 KB
/
BlockRepositoryInterface.php
File metadata and controls
executable file
·34 lines (26 loc) · 1.02 KB
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
<?php
/*
* This file was created by developers working at BitBag
* Do you need more information about us and what we do? Visit our https://bitbag.io website!
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
*/
declare(strict_types=1);
namespace BitBag\SyliusCmsPlugin\Repository;
use BitBag\SyliusCmsPlugin\Entity\BlockInterface;
use Doctrine\ORM\QueryBuilder;
use Sylius\Component\Resource\Repository\RepositoryInterface;
interface BlockRepositoryInterface extends RepositoryInterface
{
public function createListQueryBuilder(string $localeCode): QueryBuilder;
public function findEnabledByCode(string $code, string $channelCode): ?BlockInterface;
public function findBySectionCode(
string $sectionCode,
string $localeCode,
string $channelCode,
): array;
public function findByProductCode(
string $productCode,
string $localeCode,
string $channelCode,
): array;
}