FakeTransactionRepository::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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