Mock::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
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