Passed
Push — master ( 8392a0...119f32 )
by
unknown
02:41
created

Transfer::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
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 © 2016 PartFire Ltd. All rights reserved.
6
 *
7
 * User:    Carl Owens
8
 * Date:    06/12/2016
9
 * Time:    22:05
10
 * File:    Transfer.php
11
 **/
12
13
namespace PartFire\MangoPayBundle\Services;
14
15
use PartFire\MangoPayBundle\Models\TransferQueryInterface;
16
use PartFire\MangoPayBundle\Models\DTOs\Transfer as TransferDto;
17
18
class Transfer
19
{
20
    protected $transferQuery;
21
22
    public function __construct(TransferQueryInterface $transferQuery)
23
    {
24
        $this->transferQuery = $transferQuery;
25
    }
26
27
    public function create(TransferDto $transfer)
28
    {
29
        return $this->transferQuery->create($transfer);
30
    }
31
32
    public function get(string $transferId) : Transfer
33
    {
34
        return $this->transferQuery->get($transferId);
35
    }
36
}
37