Completed
Push — master ( 98b142...a3a13d )
by Paweł
02:49
created

ChoosePaymentMethod   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A orderToken() 0 4 1
A paymentIdentifier() 0 4 1
A paymentMethod() 0 4 1
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Command;
4
5
final class ChoosePaymentMethod
6
{
7
    /**
8
     * @var mixed
9
     */
10
    private $paymentIdentifier;
11
12
    /**
13
     * @var string
14
     */
15
    private $paymentMethod;
16
17
    /**
18
     * @var string
19
     */
20
    private $orderToken;
21
22
    /**
23
     * @param string $orderToken
24
     * @param mixed $paymentIdentifier
25
     * @param string $paymentMethod
26
     */
27
    public function __construct($orderToken, $paymentIdentifier, $paymentMethod)
28
    {
29
        $this->orderToken = $orderToken;
30
        $this->paymentIdentifier = $paymentIdentifier;
31
        $this->paymentMethod = $paymentMethod;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function orderToken()
38
    {
39
        return $this->orderToken;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function paymentIdentifier()
46
    {
47
        return $this->paymentIdentifier;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function paymentMethod()
54
    {
55
        return $this->paymentMethod;
56
    }
57
}
58