Zenc_EmailLogger_Block_Render_Json   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
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_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