1 | <?php |
||
2 | /** |
||
3 | * Copyright © Wirecard Brasil. All rights reserved. |
||
4 | * |
||
5 | * @author Bruno Elisei <[email protected]> |
||
6 | * See COPYING.txt for license details. |
||
7 | */ |
||
8 | |||
9 | namespace Moip\Magento2\Block; |
||
10 | |||
11 | use Magento\Framework\View\Element\Template\Context; |
||
0 ignored issues
–
show
|
|||
12 | use Moip\Magento2\Gateway\Config\ConfigBoleto; |
||
13 | |||
14 | /** |
||
15 | * Class FormBoleto - Form for payment by boleto. |
||
16 | */ |
||
17 | class FormBoleto extends \Magento\Payment\Block\Form |
||
0 ignored issues
–
show
The type
Magento\Payment\Block\Form 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
18 | { |
||
19 | /** |
||
20 | * Boleto template. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $_template = 'Moip_Magento2::form/boleto.phtml'; |
||
25 | |||
26 | /** |
||
27 | * @var configBoleto |
||
28 | */ |
||
29 | protected $configBoleto; |
||
30 | |||
31 | /* |
||
32 | * @param Context |
||
33 | * @param ConfigBoleto |
||
34 | */ |
||
35 | public function __construct( |
||
36 | Context $context, |
||
37 | ConfigBoleto $configBoleto |
||
38 | ) { |
||
39 | parent::__construct($context); |
||
40 | $this->configBoleto = $configBoleto; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Title - Boleto. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | public function getTitle() |
||
49 | { |
||
50 | return $this->configBoleto->getTitle(); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Instruction - Boleto. |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | public function getInstruction() |
||
59 | { |
||
60 | return $this->configBoleto->getInstructionCheckout(); |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * Expiration - Boleto. |
||
65 | * |
||
66 | * @var date |
||
67 | */ |
||
68 | public function getExpiration() |
||
69 | { |
||
70 | return $this->configBoleto->getExpirationFormat(); |
||
71 | } |
||
72 | } |
||
73 |
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