Completed
Push — master ( 41948a...5bb6bb )
by Łukasz
17:08 queued 13:33
created

PickupCart   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A token() 0 4 1
A channelCode() 0 4 1
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Command;
4
5
final class PickupCart
6
{
7
    /**
8
     * @var string
9
     */
10
    private $token;
11
12
    /**
13
     * @var string
14
     */
15
    private $channelCode;
16
17
    /**
18
     * @param string $token
19
     * @param string $channelCode
20
     */
21
    public function __construct($token, $channelCode)
22
    {
23
        $this->token = $token;
24
        $this->channelCode = $channelCode;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function token()
31
    {
32
        return $this->token;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function channelCode()
39
    {
40
        return $this->channelCode;
41
    }
42
}
43