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

RemoveProductFromWishlist   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 7
c 3
b 0
f 0
dl 0
loc 20
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductIdValue() 0 3 1
A getWishlistTokenValue() 0 3 1
A __construct() 0 4 1
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