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

ImportUserData::getRemoveUsers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 0
cp 0
crap 2
rs 10
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
}