Code Duplication    Length = 7-8 lines in 3 locations

src/Request/Customers/CustomerEmailTokenRequest.php 1 location

@@ 39-45 (lines=7) @@
36
     * @param int $ttlMinutes
37
     * @param Context $context
38
     */
39
    public function __construct($id, $version, $ttlMinutes, Context $context = null)
40
    {
41
        parent::__construct(CustomersEndpoint::endpoint(), $id, $version, [], $context);
42
        $this->setId($id);
43
        $this->setVersion($version);
44
        $this->ttlMinutes = $ttlMinutes;
45
    }
46
47
    /**
48
     * @param string $id

src/Request/Customers/CustomerPasswordChangeRequest.php 1 location

@@ 60-67 (lines=8) @@
57
     * @param string $newPassword
58
     * @param Context $context
59
     */
60
    public function __construct($id, $version, $currentPassword, $newPassword, Context $context = null)
61
    {
62
        parent::__construct(CustomersEndpoint::endpoint(), $context);
63
        $this->setId($id);
64
        $this->setVersion($version);
65
        $this->currentPassword = $currentPassword;
66
        $this->newPassword = $newPassword;
67
    }
68
69
    /**
70
     * @param string $id

src/Request/Me/MePasswordChangeRequest.php 1 location

@@ 52-58 (lines=7) @@
49
     * @param string $newPassword
50
     * @param Context $context
51
     */
52
    public function __construct($version, $currentPassword, $newPassword, Context $context = null)
53
    {
54
        parent::__construct(MeEndpoint::endpoint(), $context);
55
        $this->setVersion($version);
56
        $this->currentPassword = $currentPassword;
57
        $this->newPassword = $newPassword;
58
    }
59
60
    /**
61
     * @return int