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

Mock   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 2
c 2
b 1
f 1
lcom 0
cbo 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __call() 0 6 1
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