Failed Conditions
Pull Request — master (#229)
by
unknown
02:41
created

RemoveAddress   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sylius\ShopApiPlugin\Command;
6
7
use Sylius\Component\Core\Model\ShopUserInterface;
8
9
class RemoveAddress
10
{
11
    /**
12
     * @var mixed
13
     */
14
    public $id;
15
16
    /**
17
     * @var ShopUserInterface
18
     */
19
    public $user;
20
21
    /**
22
     * @param $id
23
     * @param ShopUserInterface $user
24
     */
25
    public function __construct($id, ShopUserInterface $user)
26
    {
27
        $this->id = $id;
28
        $this->user = $user;
29
    }
30
}
31