for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © Getnet. All rights reserved.
*
* @author Bruno Elisei <[email protected]>
* See LICENSE for license details.
*/
namespace Getnet\PaymentMagento\Block\Sales\Info;
use Magento\Framework\Phrase;
use Magento\Payment\Block\ConfigurableInfo;
* Class Cc - Payment information.
class Cc extends ConfigurableInfo
{
* Returns label.
* @param string $field
* @return Phrase
protected function getLabel($field)
return __($field);
}
* Returns value view.
* @param string $value
* @return string | Phrase
protected function getValueView($field, $value)
if (is_array($value)) {
is_array($value)
false
return implode('; ', $value);
return parent::getValueView($field, $value);