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

SetDefaultAddress   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 1
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 SetDefaultAddress
10
{
11
    /**
12
     * @var mixed
13
     */
14
    public $id;
15
16
    /**
17
     * @var ShopUserInterface
18
     */
19
    public $user;
20
21
    public function __construct($id, ShopUserInterface $user)
22
    {
23
        $this->id = $id;
24
        $this->user = $user;
25
    }
26
}
27