PlainHandler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 7
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A parse() 0 3 1
A render() 0 3 1
1
<?php
2
/**
3
 * Automation tool mixed with code generator for easier continuous development
4
 *
5
 * @link      https://github.com/hiqdev/hidev
6
 * @package   hidev
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\handlers;
12
13
/**
14
 * Handler for plain file operations.
15
 */
16
class PlainHandler extends BaseHandler
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function render($data)
22
    {
23
        return $data;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function parse($input)
30
    {
31
        return $input;
32
    }
33
}
34