MockQuestion   A
last analyzed

Complexity

Total Complexity 24

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 24
eloc 2
c 1
b 0
f 0
dl 0
loc 27
rs 10

24 Methods

Rating   Name   Duplication   Size   Complexity  
A delete() 0 1 1
A find() 0 1 1
A updateAll() 0 1 1
A unlink() 0 1 1
A deleteAll() 0 1 1
A save() 0 1 1
A findOne() 0 1 1
A populateRelation() 0 1 1
A link() 0 1 1
A getRelation() 0 1 1
A getPrimaryKey() 0 1 1
A attributes() 0 1 1
A isPrimaryKey() 0 1 1
A primaryKey() 0 1 1
A getDb() 0 1 1
A insert() 0 1 1
A findAll() 0 1 1
A getAttribute() 0 1 1
A update() 0 1 1
A equals() 0 1 1
A hasAttribute() 0 1 1
A getOldPrimaryKey() 0 1 1
A getIsNewRecord() 0 1 1
A setAttribute() 0 1 1
1
<?php
2
3
namespace site\tests\_support;
4
class MockQuestion implements \common\interfaces\QuestionInterface {
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) {}
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
}