Code Duplication    Length = 9-9 lines in 4 locations

src/YahooShoppingJp/Request/UpdateOrderInfoRequest.php 4 locations

@@ 225-233 (lines=9) @@
222
     * @param string $printSlipTime
223
     * @return UpdateOrderInfoRequest
224
     */
225
    public function setPrintSlipTime(\DateTimeImmutable $printSlipTime): self
226
    {
227
        if (isset($this->params['Order']['PrintSlipTime'])) {
228
            throw new LogicException('PrintSlipTime is already set.');
229
        }
230
        $this->params['Order']['PrintSlipTime'] = $printSlipTime->format('YmdHis');
231
232
        return $this;
233
    }
234
235
    /**
236
     * 納品書出力時刻
@@ 243-251 (lines=9) @@
240
     * @param \DateTimeImmutable $printDeliveryTime
241
     * @return UpdateOrderInfoRequest
242
     */
243
    public function setPrintDeliveryTime(\DateTimeImmutable $printDeliveryTime): self
244
    {
245
        if (isset($this->params['Order']['PrintDeliveryTime'])) {
246
            throw new LogicException('PrintDeliveryTime is already set.');
247
        }
248
        $this->params['Order']['PrintDeliveryTime'] = $printDeliveryTime->format('YmdHis');
249
250
        return $this;
251
    }
252
253
    /**
254
     * 請求書出力時刻
@@ 261-269 (lines=9) @@
258
     * @param \DateTimeImmutable $printBillTime
259
     * @return UpdateOrderInfoRequest
260
     */
261
    public function setPrintBillTime(\DateTimeImmutable $printBillTime): self
262
    {
263
        if (isset($this->params['Order']['PrintBillTime'])) {
264
            throw new LogicException('PrintBillTime is already set.');
265
        }
266
        $this->params['Order']['PrintBillTime'] = $printBillTime->format('YmdHis');
267
268
        return $this;
269
    }
270
271
    /**
272
     * バイヤーコメント
@@ 315-323 (lines=9) @@
312
     * @param string $notes
313
     * @return UpdateOrderInfoRequest
314
     */
315
    public function setNotes(string $notes): self
316
    {
317
        if (isset($this->params['Order']['Notes'])) {
318
            throw new LogicException('Notes is already set.');
319
        }
320
        $this->params['Order']['Notes'] = $notes;
321
322
        return $this;
323
    }
324
325
    /**
326
     * 社内メモ