Zenc_EmailLogger_Model_Resource_Log_Collection   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 _construct() 0 4 1
A orderByTimeDesc() 0 5 1
1
<?php
2
3
class Zenc_EmailLogger_Model_Resource_Log_Collection
4
    extends Mage_Core_Model_Resource_Db_Collection_Abstract
5
{
6
    protected function _construct()
7
    {
8
        $this->_init('zenc_emaillogger/log');
9
    }
10
11
    public function orderByTimeDesc()
12
    {
13
        $this->addOrder('created_at', self::SORT_ORDER_DESC);
14
        return $this;
15
    }
16
}
17