Code Duplication    Length = 9-10 lines in 5 locations

src/YahooShoppingJp/Request/UpdateOrderStatusRequest.php 1 location

@@ 74-83 (lines=10) @@
71
     * @param string $sellerId
72
     * @return self
73
     */
74
    public function setSellerId(string $sellerId): self
75
    {
76
        if (isset($this->params['SellerId'])) {
77
            throw new LogicException('SellerId is already set.');
78
        }
79
80
        $this->params['SellerId'] = $sellerId;
81
82
        return $this;
83
    }
84
85
    /**
86
     * 【必須】注文ID

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 1 location

@@ 77-86 (lines=10) @@
74
     * @param string $sellerId
75
     * @return self
76
     */
77
    public function setSellerId(string $sellerId): self
78
    {
79
        if (isset($this->params['SellerId'])) {
80
            throw new LogicException('SellerId is already set.');
81
        }
82
83
        $this->params['SellerId'] = $sellerId;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @param string $orderId

src/YahooShoppingJp/Request/UpdateOrderInfoRequest.php 1 location

@@ 85-93 (lines=9) @@
82
     * @param string $sellerId
83
     * @return self
84
     */
85
    public function setSellerId(string $sellerId): self
86
    {
87
        if (isset($this->params['SellerId'])) {
88
            throw new LogicException('SellerId is already set.');
89
        }
90
        $this->params['SellerId'] = $sellerId;
91
92
        return $this;
93
    }
94
95
    /**
96
     * 更新者名(ビジネスID登録氏名)

src/YahooShoppingJp/Request/GetOrderInfoRequest.php 1 location

@@ 96-105 (lines=10) @@
93
     * @param string $sellerId
94
     * @return self
95
     */
96
    public function setSellerId(string $sellerId): self
97
    {
98
        if (isset($this->params['SellerId'])) {
99
            throw new LogicException('SellerId is already set.');
100
        }
101
102
        $this->params['SellerId'] = $sellerId;
103
104
        return $this;
105
    }
106
107
    /**
108
     * @param string $orderId

src/YahooShoppingJp/Request/SearchOrdersRequest.php 1 location

@@ 168-177 (lines=10) @@
165
     * @param string $sellerId
166
     * @return self
167
     */
168
    public function setSellerId(string $sellerId): self
169
    {
170
        if (isset($this->params['SellerId'])) {
171
            throw new LogicException('SellerId is already set.');
172
        }
173
174
        $this->params['SellerId'] = $sellerId;
175
176
        return $this;
177
    }
178
179
    /**
180
     * @param bool $isSeen