Passed
Push — master ( 6aff41...cf050b )
by Marcel
10:24
created

ImportUserData   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 56
ccs 0
cts 5
cp 0
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getUsers() 0 2 1
A getRemoveUsers() 0 2 1
A isPerformSync() 0 2 1
A setUsers() 0 3 1
A setRemoveUsers() 0 2 1
A setPerformSync() 0 2 1
1
<?php
2
3
namespace App\Import;
4
5
use App\Entity\User;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
class ImportUserData extends AbstractImportData {
9
10
    /**
11
     * @var User[]
12
     */
13
    #[Assert\Valid(groups: ['User', 'step_two'])]
14
    private array $users = [ ];
15
16
    /**
17
     * @var User[]
18
     */
19
    private array $removeUsers = [ ];
20
21
    private bool $performSync = false;
22
23
    /**
24
     * @return User[]
25
     */
26
    public function getUsers(): array {
27
        return $this->users;
28
    }
29
30
    /**
31
     * @param User[] $users
32
     */
33
    public function setUsers(array $users): ImportUserData {
34
        $this->users = $users;
35
        return $this;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getRemoveUsers(): array {
42
        return $this->removeUsers;
43
    }
44
45
    /**
46
     * @param array $removeUsers
47
     */
48
    public function setRemoveUsers(array $removeUsers): void {
49
        $this->removeUsers = $removeUsers;
50
    }
51
52
    /**
53
     * @return bool
54
     */
55
    public function isPerformSync(): bool {
56
        return $this->performSync;
57
    }
58
59
    /**
60
     * @param bool $performSync
61
     */
62
    public function setPerformSync(bool $performSync): void {
63
        $this->performSync = $performSync;
64
    }
65
}