Passed
Push — master ( d3f672...063541 )
by Carl
11:31 queued 04:45
created

PayIn   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A createCardDirectPayIn() 0 4 1
1
<?php
2
/**
3
 * Created by Carl Owens ([email protected])
4
 * Company: PartFire Ltd (www.partfire.co.uk)
5
 * Copyright © 2017 PartFire Ltd. All rights reserved.
6
 *
7
 * User:    Carl Owens
8
 * Date:    19/01/2017
9
 * Time:    12:18
10
 * File:    PayIn.php
11
 **/
12
13
namespace PartFire\MangoPayBundle\Services;
14
15
use PartFire\MangoPayBundle\Models\DTOs\CardDirectPayIn;
16
use PartFire\MangoPayBundle\Models\PayInQueryInterface;
17
18
class PayIn
19
{
20
    /**
21
     * @var PayInQueryInterface
22
     */
23
    private $payInQuery;
24
25
    public function __construct(PayInQueryInterface $payInQuery)
26
    {
27
        $this->payInQuery = $payInQuery;
28
    }
29
30
    public function createCardDirectPayIn(CardDirectPayIn $cardDirectPayInDto)
31
    {
32
        return $this->payInQuery->createPayInCardDirect($cardDirectPayInDto);
33
    }
34
}
35