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\Model; |
23
|
|
|
|
24
|
|
|
use Magento\Framework\Model\AbstractModel; |
|
|
|
|
25
|
|
|
use Mageprince\Faq\Api\Data\FaqInterface; |
26
|
|
|
use Mageprince\Faq\Model\ResourceModel\Faq as FaqModel; |
27
|
|
|
|
28
|
|
|
class Faq extends AbstractModel implements FaqInterface |
29
|
|
|
{ |
30
|
|
|
/** |
31
|
|
|
* @return void |
32
|
|
|
*/ |
33
|
|
|
public function _construct() |
34
|
|
|
{ |
35
|
|
|
$this->_init(FaqModel::class); |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @inheridoc |
40
|
|
|
*/ |
41
|
|
|
public function getFaqId() |
42
|
|
|
{ |
43
|
|
|
return $this->getData(self::FAQ_ID); |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @inheridoc |
48
|
|
|
*/ |
49
|
|
|
public function setFaqId($faqId) |
50
|
|
|
{ |
51
|
|
|
return $this->setData(self::FAQ_ID, $faqId); |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @inheridoc |
56
|
|
|
*/ |
57
|
|
|
public function getTitle() |
58
|
|
|
{ |
59
|
|
|
return $this->getData(self::TITLE); |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @inheridoc |
64
|
|
|
*/ |
65
|
|
|
public function setTitle($title) |
66
|
|
|
{ |
67
|
|
|
return $this->setData(self::TITLE, $title); |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @inheridoc |
72
|
|
|
*/ |
73
|
|
|
public function getContent() |
74
|
|
|
{ |
75
|
|
|
return $this->getData(self::CONTENT); |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @inheridoc |
80
|
|
|
*/ |
81
|
|
|
public function setContent($content) |
82
|
|
|
{ |
83
|
|
|
return $this->setData(self::CONTENT, $content); |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @inheridoc |
88
|
|
|
*/ |
89
|
|
|
public function getSortOrder() |
90
|
|
|
{ |
91
|
|
|
return $this->getData(self::SORTORDER); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @inheridoc |
96
|
|
|
*/ |
97
|
|
|
public function setSortOrder($sortOrder) |
98
|
|
|
{ |
99
|
|
|
return $this->setData(self::SORTORDER, $sortOrder); |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @inheridoc |
104
|
|
|
*/ |
105
|
|
|
public function getStatus() |
106
|
|
|
{ |
107
|
|
|
return $this->getData(self::STATUS); |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @inheridoc |
112
|
|
|
*/ |
113
|
|
|
public function setStatus($status) |
114
|
|
|
{ |
115
|
|
|
return $this->setData(self::STATUS, $status); |
116
|
|
|
} |
117
|
|
|
} |
118
|
|
|
|
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths