Completed
Push — master ( 4c9fb6...4ad644 )
by
unknown
25s queued 11s
created

RemoveProductFromWishlist::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BitBag\SyliusWishlistPlugin\Command\Wishlist;
6
7
final class RemoveProductFromWishlist
8
{
9
    private int $productId;
10
11
    private string $wishlistToken;
12
13
    public function __construct(int $productId, string $token)
14
    {
15
        $this->productId = $productId;
16
        $this->wishlistToken = $token;
17
    }
18
19
    public function getProductIdValue(): int
20
    {
21
        return $this->productId;
22
    }
23
24
    public function getWishlistTokenValue(): string
25
    {
26
        return $this->wishlistToken;
27
    }
28
}
29