Zenc_EmailLogger_Block_Render_Json::_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_Json
4
    extends Mage_Core_Block_Abstract
5
    implements Zenc_EmailLogger_Block_Render_Interface
6
{
7
    public function getContentType()
8
    {
9
        return 'application/json';
10
    }
11
12
    protected function _toHtml()
13
    {
14
        return json_encode($this->getValue());
15
    }
16
}
17