Completed
Push — master ( 60539d...725f3a )
by Dmitry
07:23
created

FakeTransactionRepository   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 4
c 1
b 1
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\Object;
14
use hiqdev\yii2\merchant\transactions\TransactionRepositoryInterface;
15
16
class FakeTransactionRepository extends Object implements TransactionRepositoryInterface
0 ignored issues
show
Deprecated Code introduced by
The class yii\base\Object has been deprecated with message: since 2.0.13, the class name `Object` is invalid since PHP 7.2, use [[BaseObject]] instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
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