FraudManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 10 1
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\PaymentMagento\Model\Adminhtml\Source;
10
11
use Magento\Framework\Data\Form\Element\AbstractElement;
12
13
/**
14
 * Fraud Manager Block - Information to Fraud Manager.
15
 */
16
class FraudManager extends \Magento\Config\Block\System\Config\Form\Field
17
{
18
    /**
19
     * Render element value.
20
     *
21
     * @param AbstractElement $element
22
     *
23
     * @return string
24
     */
25
    public function render(AbstractElement $element)
26
    {
27
        $output = '<div class="getnet-featured-session">';
28
        $output .= '<h2 class="getnet-sub-title">'.__('Attention, a new cookie will be created.').'</h2>';
29
        $output .= '<div>'.__('Adjust your cookie information page.').'</div>';
30
        $output .= '<p>'.__('New cookie name: "thx_guid"').'</p>';
31
        $output .= '<p>'.__('Description of use: User identification cookie with Getnet payment method.').'</p>';
32
        $output .= '</div>';
33
34
        return '<div id="row_'.$element->getHtmlId().'">'.$output.'</div>';
35
    }
36
}
37