Zenc_EmailLogger_Block_Render_Dump   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContentType() 0 4 1
A _toHtml() 0 4 1
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