Code Duplication    Length = 28-28 lines in 5 locations

TaskManager/src/Kreta/TaskManager/Application/Command/Organization/RemoveOrganizationMemberToOrganizationCommand.php 1 location

@@ 17-44 (lines=28) @@
14
15
namespace Kreta\TaskManager\Application\Command\Organization;
16
17
class RemoveOrganizationMemberToOrganizationCommand
18
{
19
    private $userId;
20
    private $organizationId;
21
    private $removerId;
22
23
    public function __construct(string $userId, string $organizationId, string $removerId)
24
    {
25
        $this->userId = $userId;
26
        $this->organizationId = $organizationId;
27
        $this->removerId = $removerId;
28
    }
29
30
    public function userId() : string
31
    {
32
        return $this->userId;
33
    }
34
35
    public function organizationId(): string
36
    {
37
        return $this->organizationId;
38
    }
39
40
    public function removerId() : string
41
    {
42
        return $this->removerId;
43
    }
44
}
45

TaskManager/src/Kreta/TaskManager/Application/Command/Organization/RemoveOwnerToOrganizationCommand.php 1 location

@@ 17-44 (lines=28) @@
14
15
namespace Kreta\TaskManager\Application\Command\Organization;
16
17
class RemoveOwnerToOrganizationCommand
18
{
19
    private $userId;
20
    private $organizationId;
21
    private $removerId;
22
23
    public function __construct(string $userId, string $organizationId, string $removerId)
24
    {
25
        $this->userId = $userId;
26
        $this->organizationId = $organizationId;
27
        $this->removerId = $removerId;
28
    }
29
30
    public function userId() : string
31
    {
32
        return $this->userId;
33
    }
34
35
    public function organizationId(): string
36
    {
37
        return $this->organizationId;
38
    }
39
40
    public function removerId() : string
41
    {
42
        return $this->removerId;
43
    }
44
}
45

TaskManager/src/Kreta/TaskManager/Application/Query/Project/CountProjectsQuery.php 1 location

@@ 17-44 (lines=28) @@
14
15
namespace Kreta\TaskManager\Application\Query\Project;
16
17
class CountProjectsQuery
18
{
19
    private $userId;
20
    private $name;
21
    private $organizationId;
22
23
    public function __construct(string $userId, string $organizationId = null, string $name = null)
24
    {
25
        $this->userId = $userId;
26
        $this->name = $name;
27
        $this->organizationId = $organizationId;
28
    }
29
30
    public function userId() : string
31
    {
32
        return $this->userId;
33
    }
34
35
    public function organizationId()
36
    {
37
        return $this->organizationId;
38
    }
39
40
    public function name()
41
    {
42
        return $this->name;
43
    }
44
}
45

TaskManager/src/Kreta/TaskManager/Application/Query/Organization/OrganizationMemberOfIdQuery.php 1 location

@@ 17-44 (lines=28) @@
14
15
namespace Kreta\TaskManager\Application\Query\Organization;
16
17
class OrganizationMemberOfIdQuery
18
{
19
    private $organizationId;
20
    private $userId;
21
    private $memberId;
22
23
    public function __construct(string $organizationId, string $memberId, string $userId)
24
    {
25
        $this->organizationId = $organizationId;
26
        $this->userId = $userId;
27
        $this->memberId = $memberId;
28
    }
29
30
    public function organizationId() : string
31
    {
32
        return $this->organizationId;
33
    }
34
35
    public function memberId() : string
36
    {
37
        return $this->memberId;
38
    }
39
40
    public function userId() : string
41
    {
42
        return $this->userId;
43
    }
44
}
45

TaskManager/src/Kreta/TaskManager/Application/Query/Organization/OwnerOfIdQuery.php 1 location

@@ 17-44 (lines=28) @@
14
15
namespace Kreta\TaskManager\Application\Query\Organization;
16
17
class OwnerOfIdQuery
18
{
19
    private $organizationId;
20
    private $userId;
21
    private $ownerId;
22
23
    public function __construct(string $organizationId, string $ownerId, string $userId)
24
    {
25
        $this->organizationId = $organizationId;
26
        $this->userId = $userId;
27
        $this->ownerId = $ownerId;
28
    }
29
30
    public function organizationId() : string
31
    {
32
        return $this->organizationId;
33
    }
34
35
    public function ownerId() : string
36
    {
37
        return $this->ownerId;
38
    }
39
40
    public function userId() : string
41
    {
42
        return $this->userId;
43
    }
44
}
45