1 | <?php |
||
30 | class ArticleProvider implements ArticleProviderInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var ArticleRepositoryInterface |
||
34 | */ |
||
35 | private $articleRepository; |
||
36 | |||
37 | /** |
||
38 | * ArticleProvider constructor. |
||
39 | * |
||
40 | * @param ArticleRepositoryInterface $articleRepository |
||
41 | 111 | */ |
|
42 | public function __construct(ArticleRepositoryInterface $articleRepository) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 2 | public function getOneById($id) |
|
58 | 11 | ||
59 | /** |
||
60 | 11 | * {@inheritdoc} |
|
61 | 9 | */ |
|
62 | public function getParent($id) |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function getRouteArticlesQuery(string $routeIdentifier, array $order) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function getOneByCriteria(Criteria $criteria): ArticleInterface |
||
89 | 12 | ||
90 | 12 | /** |
|
91 | 2 | * {@inheritdoc} |
|
92 | */ |
||
93 | public function getManyByCriteria(Criteria $criteria, array $sorting): Collection |
||
99 | |||
100 | 2 | /** |
|
101 | * {@inheritdoc} |
||
102 | 2 | */ |
|
103 | public function getCountByCriteria(Criteria $criteria): int |
||
107 | } |
||
108 |