Mock   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __call() 0 6 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * ActiveRecord for API
4
 *
5
 * @link      https://github.com/hiqdev/yii2-hiart
6
 * @package   yii2-hiart
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\hiart\tests;
12
13
class Mock
14
{
15
    public $name;
16
    public $args;
17
    public $result;
18
19
    public function __construct($result)
20
    {
21
        $this->result = $result;
22
    }
23
24
    public function __call($name, $args)
25
    {
26
        $this->name = $name;
27
        $this->args = $args;
28
29
        return $this->result;
30
    }
31
}
32