| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Account extends \app\models\Account |
||
| 19 | { |
||
| 20 | const SCENARIO_UPDATE = 'update'; |
||
| 21 | |||
| 22 | public $as_followed_by; |
||
| 23 | public $as_follows; |
||
| 24 | public $as_media; |
||
| 25 | public $as_er; |
||
| 26 | public $as_created_at; |
||
| 27 | |||
| 28 | public $s_tags; |
||
| 29 | |||
| 30 | public function scenarios() |
||
| 31 | { |
||
| 32 | $scenarios = parent::scenarios(); |
||
| 33 | $scenarios[self::SCENARIO_UPDATE] = [ |
||
| 34 | 'name', |
||
| 35 | 'accounts_monitoring_level' |
||
| 36 | ]; |
||
| 37 | |||
| 38 | return $scenarios; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getLastStats() |
||
| 42 | { |
||
| 43 | return $this->getLastAccountStats(); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function attributeLabels() |
||
| 47 | { |
||
| 48 | return ArrayHelper::merge(parent::attributeLabels(), [ |
||
| 49 | 'as_followed_by' => 'Followed By', |
||
| 50 | 'as_follows' => 'Follows', |
||
| 51 | 'as_media' => 'Media', |
||
| 52 | 'as_er' => 'Er', |
||
| 53 | 's_tags' => 'Tags', |
||
| 54 | 'as_created_at' => 'Created At', |
||
| 55 | ]); |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getAccountStats() |
||
| 61 | } |
||
| 62 | } |