Completed
Push — master ( 0045e7...3ed8dc )
by Zsolt
02:29
created

orderByTimeDesc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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