1 | <?php |
||
2 | /** |
||
3 | * Copyright © Getnet. All rights reserved. |
||
4 | * |
||
5 | * @author Bruno Elisei <[email protected]> |
||
6 | * See LICENSE for license details. |
||
7 | */ |
||
8 | |||
9 | namespace Getnet\SubSellerMagento\Model\Seller; |
||
10 | |||
11 | use Getnet\SubSellerMagento\Helper\Data as SubSellerHelper; |
||
12 | |||
13 | /** |
||
14 | * Sub Seller Model Bank Accounts. |
||
15 | * |
||
16 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
||
17 | */ |
||
18 | class BankAccounts extends \Magento\Framework\Model\AbstractExtensibleModel implements |
||
19 | \Getnet\SubSellerMagento\Api\Data\BankAccountsInterface |
||
20 | { |
||
21 | /**#@+ |
||
22 | * Constants defined for keys of array, makes typos less likely |
||
23 | */ |
||
24 | public const ACCOUNT_TYPE = 'account_type'; |
||
25 | public const BANK = 'bank'; |
||
26 | public const AGENCY = 'agency'; |
||
27 | public const AGENCY_DIGIT = 'agency_digit'; |
||
28 | public const ACCOUNT = 'account'; |
||
29 | public const ACCOUNT_DIGIT = 'account_digit'; |
||
30 | /**#@-*/ |
||
31 | |||
32 | /** |
||
33 | * @var SubSellerHelper |
||
34 | */ |
||
35 | protected $subSellerHelper; |
||
36 | |||
37 | /** |
||
38 | * @param SubSellerHelper $subSellerHelper |
||
39 | */ |
||
40 | public function __construct( |
||
41 | SubSellerHelper $subSellerHelper |
||
42 | ) { |
||
43 | $this->subSellerHelper = $subSellerHelper; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Get Sub Seller Account Type. |
||
48 | * |
||
49 | * @return string; |
||
50 | */ |
||
51 | public function getAccountType() |
||
52 | { |
||
53 | return $this->getData(self::ACCOUNT_TYPE); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * Set Sub Seller Account Type. |
||
58 | * |
||
59 | * @param string $accountType |
||
60 | * |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function setAccountType($accountType) |
||
64 | { |
||
65 | return $this->setData(self::ACCOUNT_TYPE, $accountType); |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * Get Sub Seller Bank. |
||
70 | * |
||
71 | * @return string; |
||
72 | */ |
||
73 | public function getBank() |
||
74 | { |
||
75 | return $this->getData(self::BANK); |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * Set Sub Seller Bank. |
||
80 | * |
||
81 | * @param string $bank |
||
82 | * |
||
83 | * @return $this |
||
84 | */ |
||
85 | public function setBank($bank) |
||
86 | { |
||
87 | return $this->setData(self::BANK, $bank); |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * Get Sub Seller Agency. |
||
92 | * |
||
93 | * @return string; |
||
94 | */ |
||
95 | public function getAgency() |
||
96 | { |
||
97 | return $this->getData(self::AGENCY); |
||
98 | } |
||
99 | |||
100 | /** |
||
101 | * Set Sub Seller Agency. |
||
102 | * |
||
103 | * @param string $agency |
||
104 | * |
||
105 | * @return $this |
||
106 | */ |
||
107 | public function setAgency($agency) |
||
108 | { |
||
109 | return $this->setData(self::AGENCY, $agency); |
||
110 | } |
||
111 | |||
112 | /** |
||
113 | * Get Sub Seller Agency Digit. |
||
114 | * |
||
115 | * @return string; |
||
116 | */ |
||
117 | public function getAgencyDigit() |
||
118 | { |
||
119 | return $this->getData(self::AGENCY_DIGIT); |
||
120 | } |
||
121 | |||
122 | /** |
||
123 | * Set Sub Seller Agency Digit. |
||
124 | * |
||
125 | * @param string $agencyDigit |
||
126 | * |
||
127 | * @return $this |
||
128 | */ |
||
129 | public function setAgencyDigit($agencyDigit) |
||
130 | { |
||
131 | return $this->setData(self::AGENCY_DIGIT, $agencyDigit); |
||
132 | } |
||
133 | |||
134 | /** |
||
135 | * Get Sub Seller Account. |
||
136 | * |
||
137 | * @return string; |
||
138 | */ |
||
139 | public function getAccount() |
||
140 | { |
||
141 | return $this->getData(self::ACCOUNT); |
||
142 | } |
||
143 | |||
144 | /** |
||
145 | * Set Sub Seller Account. |
||
146 | * |
||
147 | * @param string $account |
||
148 | * |
||
149 | * @return $this |
||
150 | */ |
||
151 | public function setAccount($account) |
||
152 | { |
||
153 | return $this->setData(self::ACCOUNT, $account); |
||
154 | } |
||
155 | |||
156 | /** |
||
157 | * Get Sub Seller Digit Account. |
||
158 | * |
||
159 | * @return string; |
||
160 | */ |
||
161 | public function getAccountDigit() |
||
162 | { |
||
163 | return $this->getData(self::ACCOUNT_DIGIT); |
||
164 | } |
||
165 | |||
166 | /** |
||
167 | * Set Sub Seller Account Digit. |
||
168 | * |
||
169 | * @param string $accountDigit |
||
170 | * |
||
171 | * @return $this |
||
172 | */ |
||
173 | public function setAccountDigit($accountDigit) |
||
174 | { |
||
175 | return $this->setData(self::ACCOUNT_DIGIT, $accountDigit); |
||
176 | } |
||
177 | |||
178 | /** |
||
179 | * @inheritdoc |
||
180 | * |
||
181 | * @return \Getnet\SubSellerMagento\Api\Data\BankAccountsExtensionInterface|null |
||
0 ignored issues
–
show
|
|||
182 | */ |
||
183 | public function getExtensionAttributes() |
||
184 | { |
||
185 | return $this->_getExtensionAttributes(); |
||
0 ignored issues
–
show
|
|||
186 | } |
||
187 | |||
188 | /** |
||
189 | * @inheritdoc |
||
190 | * |
||
191 | * @param \Getnet\SubSellerMagento\Api\Data\BankAccountsExtensionInterface $extensionAttributes |
||
192 | * |
||
193 | * @return $this |
||
194 | */ |
||
195 | public function setExtensionAttributes( |
||
196 | \Getnet\SubSellerMagento\Api\Data\BankAccountsExtensionInterface $extensionAttributes |
||
197 | ) { |
||
198 | return $this->_setExtensionAttributes($extensionAttributes); |
||
199 | } |
||
200 | } |
||
201 |
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