Zenc_EmailLogger_Block_Render_Dump::_toHtml()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
class Zenc_EmailLogger_Block_Render_Dump
4
    extends Mage_Core_Block_Abstract
5
    implements Zenc_EmailLogger_Block_Render_Interface
6
{
7
    /**
8
     * Block html frame open tag
9
     * @var string
10
     */
11
    protected $_frameOpenTag = 'pre';
12
13
    /**
14
     * Block html frame close tag
15
     * @var string
16
     */
17
    protected $_frameCloseTag = 'pre';
18
19
    public function getContentType()
20
    {
21
        return 'text/html';
22
    }
23
24
    protected function _toHtml()
25
    {
26
        return var_export($this->getValue(), true);
27
    }
28
}
29