MockUserBehavior   A
last analyzed

Complexity

Total Complexity 31

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 31
eloc 2
c 1
b 0
f 0
dl 0
loc 35
rs 9.92

31 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 getCheckinBreakdown() 0 1 1
A getUserBehaviorsWithCategory() 0 1 1
A getUser() 0 1 1
A getPastCheckinDates() 0 1 1
A getBehaviorsWithCounts() 0 1 1
A decorate() 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 getCheckinBreakdown(int $period) {}
36
  public function getBehaviorsByCategory(array $decorated_behaviors) {}
37
  public static function decorate(array $uo) {}
38
  public function getBehaviorsWithCounts($limit) {}
39
 }