Completed
Pull Request — master (#170)
by Corey
03:03
created

MockUserBehavior   A

Complexity

Total Complexity 37

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 37
eloc 2
dl 0
loc 41
rs 9.44
c 0
b 0
f 0

37 Methods

Rating   Name   Duplication   Size   Complexity  
A updateAll() 0 1 1
A setAttribute() 0 1 1
A findOne() 0 1 1
A link() 0 1 1
A getRelation() 0 1 1
A save() 0 1 1
A isPrimaryKey() 0 1 1
A delete() 0 1 1
A getDb() 0 1 1
A attributes() 0 1 1
A hasAttribute() 0 1 1
A findAll() 0 1 1
A getOldPrimaryKey() 0 1 1
A insert() 0 1 1
A getAttribute() 0 1 1
A primaryKey() 0 1 1
A update() 0 1 1
A unlink() 0 1 1
A populateRelation() 0 1 1
A getPrimaryKey() 0 1 1
A getIsNewRecord() 0 1 1
A equals() 0 1 1
A find() 0 1 1
A deleteAll() 0 1 1
A getUserBehaviorsWithCategory() 0 1 1
A getTopBehaviors() 0 1 1
A getUser() 0 1 1
A getDailyScore() 0 1 1
A decorate() 0 1 1
A calculateScoresOfLastMonth() 0 1 1
A decorateWithCategory() 0 1 1
A getPastCheckinDates() 0 1 1
A getBehaviorsByDate() 0 1 1
A getBehaviorsWithCounts() 0 1 1
A calculateScore() 0 1 1
A calculateScoreByUTCRange() 0 1 1
A getBehaviorsByCategory() 0 1 1
1
<?php
2
3
namespace site\tests\_support;
4
class MockUserBehavior extends \yii\base\BaseObject implements \common\interfaces\UserBehaviorInterface {
5
  use \yii\base\StaticInstanceTrait;
6
7
  public static function primaryKey() {}
8
  public function attributes() {}
9
  public function getAttribute($name) {}
10
  public function setAttribute($name, $value) {}
11
  public function hasAttribute($name) {}
12
  public function getPrimaryKey($asArray = false) {}
13
  public function getOldPrimaryKey($asArray = false) {}
14
  public static function isPrimaryKey($keys) {}
15
  public static function find() {}
16
  public static function findOne($condition) {}
17
  public static function findAll($condition) {return [];}
18
  public static function updateAll($attributes, $condition = null) {}
19
  public static function deleteAll($condition = null) {}
20
  public function save($runValidation = true, $attributeNames = null) {}
21
  public function insert($runValidation = true, $attributes = null) {}
22
  public function update($runValidation = true, $attributeNames = null) {}
23
  public function delete() {}
24
  public function getIsNewRecord() {}
25
  public function equals($record) {}
26
  public function getRelation($name, $throwException = true) {}
27
  public function populateRelation($name, $records) {}
28
  public function link($name, $model, $extraColumns = []) {}
29
  public function unlink($name, $model, $delete = false) {}
30
  public static function getDb() {}
31
32
  public function getUser() {}
33
  public function getPastCheckinDates() {}
34
  public function getUserBehaviorsWithCategory($checkin_date) {}
35
  public function getDailyScore($date) {}
36
  public function getBehaviorsByDate($start, $end) {}
37
  public function calculateScoreByUTCRange($start, $end) {}
38
  public function calculateScoresOfLastMonth() {}
39
  public function calculateScore($usr_bhvrs, $all_cats) {}
40
  public function getTopBehaviors(int $limit) {}
41
  public function getBehaviorsByCategory(\DateTime $date) {}
42
  public static function decorate(array $uo, $with_category) {}
43
  public static function decorateWithCategory(array $uo) {}
44
  public function getBehaviorsWithCounts($limit) {}
45
 }