Completed
Push — master ( ccdc3c...202605 )
by Andrii
04:16
created

Mock::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4286
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
/*
4
 * Tools to use API as ActiveRecord for Yii2
5
 *
6
 * @link      https://github.com/hiqdev/yii2-hiart
7
 * @package   yii2-hiart
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\hiart\tests;
13
14
class Mock
15
{
16
    public $name;
17
    public $args;
18
    public $result;
19
20
    public function __construct($result)
21
    {
22
        $this->result = $result;
23
    }
24
25
    public function __call($name, $args)
26
    {
27
        $this->name = $name;
28
        $this->args = $args;
29
        return $this->result;
30
    }
31
}
32