Passed
Branch master (206b08)
by Paweł
03:03
created

Account::getLastStats()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created for IG Monitoring.
4
 * User: jakim <[email protected]>
5
 * Date: 23.01.2018
6
 */
7
8
namespace app\modules\admin\models;
9
10
11
use app\components\ArrayHelper;
12
13
/**
14
 * @inheritdoc
15
 *
16
 * @property \app\models\AccountStats $lastStats
17
 */
18
class Account extends \app\models\Account
19
{
20
    public $as_followed_by;
21
    public $as_follows;
22
    public $as_media;
23
    public $as_er;
24
25
    public $s_tags;
26
27
    public function getLastStats()
28
    {
29
        return $this->getLastAccountStats();
30
    }
31
32
    public function attributeLabels()
33
    {
34
        return ArrayHelper::merge(parent::attributeLabels(), [
35
            'as_followed_by' => 'Followed By',
36
            'as_follows' => 'Follows',
37
            'as_media' => 'Media',
38
            'as_er' => 'Er',
39
            's_tags' => 'Tags',
40
        ]);
41
    }
42
}