Code Duplication    Length = 10-10 lines in 3 locations

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 3 locations

@@ 186-195 (lines=10) @@
183
     * @param string $shipInvoiceNumber1
184
     * @return self
185
     */
186
    public function setShipInvoiceNumber1(string $shipInvoiceNumber1): self
187
    {
188
        if (isset($this->params['Order']['Ship']['ShipInvoiceNumber1'])) {
189
            throw new LogicException('ShipInvoiceNumber1 is already set.');
190
        }
191
192
        $this->params['Order']['Ship']['ShipInvoiceNumber1'] = $shipInvoiceNumber1;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $shipInvoiceNumber2
@@ 201-210 (lines=10) @@
198
     * @param string $shipInvoiceNumber2
199
     * @return self
200
     */
201
    public function setShipInvoiceNumber2(string $shipInvoiceNumber2): self
202
    {
203
        if (isset($this->params['Order']['Ship']['ShipInvoiceNumber2'])) {
204
            throw new LogicException('ShipInvoiceNumber2 is already set.');
205
        }
206
207
        $this->params['Order']['Ship']['ShipInvoiceNumber2'] = $shipInvoiceNumber2;
208
209
        return $this;
210
    }
211
212
    /**
213
     * @param string $shipUrl
@@ 216-225 (lines=10) @@
213
     * @param string $shipUrl
214
     * @return self
215
     */
216
    public function setShipUrl(string $shipUrl): self
217
    {
218
        if (isset($this->params['Order']['Ship']['ShipUrl'])) {
219
            throw new LogicException('ShipUrl is already set.');
220
        }
221
222
        $this->params['Order']['Ship']['ShipUrl'] = '![CDATA[' . $shipUrl . ']]';
223
224
        return $this;
225
    }
226
227
    /**
228
     * @param \DateTimeImmutable $shipDate