N98\Magento\Command\Config\AbstractConfigCommand::_formatValue PHP Method

_formatValue() protected method

protected _formatValue ( string $value, string $encryptionType ) : string
$value string
$encryptionType string
return string
    protected function _formatValue($value, $encryptionType)
    {
        if ($encryptionType == 'encrypt') {
            $value = $this->getEncryptionModel()->encrypt($value);
        } elseif ($encryptionType == 'decrypt') {
            $value = $this->getEncryptionModel()->decrypt($value);
        }
        return $value;
    }