FakeUser   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 2
dl 0
loc 9
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 1 1
A findIdentityByAccessToken() 0 1 1
A findIdentity() 0 1 1
A getAuthKey() 0 1 1
A validateAuthKey() 0 1 1
1
<?php
2
namespace common\tests\unit;
3
4
use yii;
5
use yii\web\IdentityInterface;
6
use yii\base\Model;
7
8
/**
9
 * FakeUser model
10
 */
11
class FakeUser extends Model implements IdentityInterface
12
{
13
  public $timezone;
14
15
  static public function findIdentity($id) {}
16
  static public function findIdentityByAccessToken($token, $type = null) {}
17
  public function getId() {}
18
  public function getAuthKey() {}
19
  public function validateAuthKey($authKey) {}
20
}
21
22