Completed
Push — develop ( aae47e...e01b9a )
by Tino
08:22
created

TextWysiwygColumnType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A doEscape() 0 3 1
A doUnescape() 0 3 1
1
<?php
2
3
/**
4
 * Copyright (c) by the ACP3 Developers.
5
 * See the LICENSE file at the top-level module directory for licensing details.
6
 */
7
8
namespace ACP3\Core\Model\DataProcessor\ColumnType;
9
10
class TextWysiwygColumnType extends TextColumnType
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function doEscape($value)
16
    {
17
        return $this->secure->strEncode($value, true);
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function doUnescape($value)
24
    {
25
        return $value;
26
    }
27
}
28