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

SetDefaultAddress::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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