Issues (254)

Api/FaqRepositoryInterface.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * MagePrince
4
 *
5
 * NOTICE OF LICENSE
6
 *
7
 * This source file is subject to the mageprince.com license that is
8
 * available through the world-wide-web at this URL:
9
 * https://mageprince.com/end-user-license-agreement
10
 *
11
 * DISCLAIMER
12
 *
13
 * Do not edit or add to this file if you wish to upgrade this extension to newer
14
 * version in the future.
15
 *
16
 * @category    MagePrince
17
 * @package     Mageprince_Faq
18
 * @copyright   Copyright (c) MagePrince (https://mageprince.com/)
19
 * @license     https://mageprince.com/end-user-license-agreement
20
 */
21
22
namespace Mageprince\Faq\Api;
23
24
interface FaqRepositoryInterface
25
{
26
    /**
27
     * Save Faq
28
     *
29
     * @param \Mageprince\Faq\Api\Data\FaqInterface $faq
30
     * @return \Mageprince\Faq\Api\Data\FaqInterface
31
     * @throws \Magento\Framework\Exception\LocalizedException
32
     */
33
    public function save(\Mageprince\Faq\Api\Data\FaqInterface $faq);
34
35
    /**
36
     * Retrieve Faq
37
     *
38
     * @param int $faqId
39
     * @return \Mageprince\Faq\Api\Data\FaqInterface
40
     * @throws \Magento\Framework\Exception\LocalizedException
41
     */
42
    public function getById($faqId);
43
44
    /**
45
     * Retrieve Faq matching the specified criteria.
46
     *
47
     * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
48
     * @return \Mageprince\Faq\Api\Data\FaqSearchResultsInterface
49
     * @throws \Magento\Framework\Exception\LocalizedException
50
     */
51
    public function getList(
52
        \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
0 ignored issues
show
The type Magento\Framework\Api\SearchCriteriaInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
53
    );
54
55
    /**
56
     * Delete Faq
57
     *
58
     * @param \Mageprince\Faq\Api\Data\FaqInterface $faq
59
     * @return bool true on success
60
     * @throws \Magento\Framework\Exception\LocalizedException
61
     */
62
    public function delete(\Mageprince\Faq\Api\Data\FaqInterface $faq);
63
64
    /**
65
     * Delete Faq by ID
66
     *
67
     * @param int $faqId
68
     * @return bool true on success
69
     * @throws \Magento\Framework\Exception\NoSuchEntityException
70
     * @throws \Magento\Framework\Exception\LocalizedException
71
     */
72
    public function deleteById($faqId);
73
}
74