Passed
Pull Request — master (#81)
by
unknown
13:41 queued 10:22
created

ImportWishlistFromCsv   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 3 1
A getFileInfo() 0 3 1
A __construct() 0 8 1
A getWishlistId() 0 3 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusWishlistPlugin\Command\Wishlist;
12
13
use Symfony\Component\HttpFoundation\Request;
14
15
final class ImportWishlistFromCsv
16
{
17
    private \SplFileInfo $file;
18
19
    private Request $request;
20
21
    private int $wishlistId;
22
23
    public function __construct(
24
        \SplFileInfo $file,
25
        Request $request,
26
        int $wishlistId
27
    ) {
28
        $this->file = $file;
29
        $this->request = $request;
30
        $this->wishlistId = $wishlistId;
31
    }
32
33
    public function getFileInfo(): \SplFileInfo
34
    {
35
        return $this->file;
36
    }
37
38
    public function getRequest(): Request
39
    {
40
        return $this->request;
41
    }
42
43
    public function getWishlistId(): int
44
    {
45
        return $this->wishlistId;
46
    }
47
}
48