Code Duplication    Length = 10-10 lines in 4 locations

src/YahooShoppingJp/Request/GetOrderInfoRequest.php 1 location

@@ 66-75 (lines=10) @@
63
     * @param string $orderId
64
     * @return self
65
     */
66
    public function setOrderId(string $orderId): self
67
    {
68
        if (isset($this->params['Target']['OrderId'])) {
69
            throw new LogicException('OrderId is already set.');
70
        }
71
72
        $this->params['Target']['OrderId'] = $orderId;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return array

src/YahooShoppingJp/Request/UpdateOrderStatusRequest.php 3 locations

@@ 41-50 (lines=10) @@
38
     * @param string $orderId
39
     * @return self
40
     */
41
    public function setOrderId(string $orderId): self
42
    {
43
        if (isset($this->params['Target']['OrderId'])) {
44
            throw new LogicException('OrderId is already set.');
45
        }
46
47
        $this->params['Target']['OrderId'] = $orderId;
48
49
        return $this;
50
    }
51
52
    /**
53
     * 【必須】ポイント確定要否
@@ 61-70 (lines=10) @@
58
     * @param bool $isPointFix
59
     * @return self
60
     */
61
    public function setIsPointFix(bool $isPointFix): self
62
    {
63
        if (isset($this->params['Target']['IsPointFix'])) {
64
            throw new LogicException('IsPointFix is already set.');
65
        }
66
67
        $this->params['Target']['IsPointFix'] = ($isPointFix ? 'true' : 'false');
68
69
        return $this;
70
    }
71
72
    /**
73
     * 【必須】注文ステータス
@@ 94-103 (lines=10) @@
91
     * @param string $operationUser
92
     * @return self
93
     */
94
    public function setOperationUser(string $operationUser): self
95
    {
96
        if (isset($this->params['Target']['OperationUser'])) {
97
            throw new LogicException('OperationUser is already set.');
98
        }
99
100
        $this->params['Target']['OperationUser'] = $operationUser;
101
102
        return $this;
103
    }
104
105
    /**
106
     * キャンセル理由