FakeTransactionRepository   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A findById() 0 4 1
A save() 0 4 1
A create() 0 4 1
A insert() 0 4 1
1
<?php
2
/**
3
 * Yii2 extension for payment processing with Omnipay, Payum and more later.
4
 *
5
 * @link      https://github.com/hiqdev/yii2-merchant
6
 * @package   yii2-merchant
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\yii2\merchant\tests\unit;
12
13
use yii\base\BaseObject;
14
use hiqdev\yii2\merchant\transactions\TransactionRepositoryInterface;
15
16
class FakeTransactionRepository extends BaseObject implements TransactionRepositoryInterface
17
{
18
    public function findById($id)
19
    {
20
        return null;
21
    }
22
23
    public function save($transaction)
24
    {
25
        return null;
26
    }
27
28
    public function create($id, $merchant, $parameters)
29
    {
30
        return null;
31
    }
32
33
    public function insert($transaction)
34
    {
35
        return null;
36
    }
37
}
38