Completed
Pull Request — master (#229)
by
unknown
02:44
created

SetDefaultAddress   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 id() 0 4 1
A userEmail() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sylius\ShopApiPlugin\Command;
6
7
final class SetDefaultAddress
8
{
9
    /**
10
     * @var mixed
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $userEmail;
18
19
    /**
20
     * @param $id
21
     * @param string $userEmail
22
     */
23
    public function __construct($id, string $userEmail)
24
    {
25
        $this->id = $id;
26
        $this->userEmail = $userEmail;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function id()
33
    {
34
        return $this->id;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function userEmail()
41
    {
42
        return $this->userEmail;
43
    }
44
}
45