Code Duplication    Length = 21-21 lines in 2 locations

Notifier/src/Kreta/Notifier/Application/Command/Inbox/ReadNotificationCommand.php 1 location

@@ 17-37 (lines=21) @@
14
15
namespace Kreta\Notifier\Application\Command\Inbox;
16
17
class ReadNotificationCommand
18
{
19
    private $notificationId;
20
    private $userId;
21
22
    public function __construct(string $notificationId, string $userId)
23
    {
24
        $this->notificationId = $notificationId;
25
        $this->userId = $userId;
26
    }
27
28
    public function notificationId() : string
29
    {
30
        return $this->notificationId;
31
    }
32
33
    public function userId() : string
34
    {
35
        return $this->userId;
36
    }
37
}
38

Notifier/src/Kreta/Notifier/Application/Command/Inbox/UnreadNotificationCommand.php 1 location

@@ 17-37 (lines=21) @@
14
15
namespace Kreta\Notifier\Application\Command\Inbox;
16
17
class UnreadNotificationCommand
18
{
19
    private $notificationId;
20
    private $userId;
21
22
    public function __construct(string $notificationId, string $userId)
23
    {
24
        $this->notificationId = $notificationId;
25
        $this->userId = $userId;
26
    }
27
28
    public function notificationId() : string
29
    {
30
        return $this->notificationId;
31
    }
32
33
    public function userId() : string
34
    {
35
        return $this->userId;
36
    }
37
}
38