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

PayIn::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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