Code Duplication    Length = 9-9 lines in 5 locations

src/YahooShoppingJp/Request/UpdateOrderInfoRequest.php 5 locations

@@ 1462-1470 (lines=9) @@
1459
     * @param string $payCharge
1460
     * @return self
1461
     */
1462
    public function setPayCharge(string $payCharge): self
1463
    {
1464
        if (isset($this->params['Detail']['PayCharge'])) {
1465
            throw new LogicException('PayCharge is already set.');
1466
        }
1467
        $this->params['Detail']['PayCharge'] = $payCharge;
1468
1469
        return $this;
1470
    }
1471
1472
    /**
1473
     * 送料
@@ 1479-1487 (lines=9) @@
1476
     * @param string $shipCharge
1477
     * @return self
1478
     */
1479
    public function setShipCharge(string $shipCharge): self
1480
    {
1481
        if (isset($this->params['Detail']['ShipCharge'])) {
1482
            throw new LogicException('ShipCharge is already set.');
1483
        }
1484
        $this->params['Detail']['ShipCharge'] = $shipCharge;
1485
1486
        return $this;
1487
    }
1488
1489
    /**
1490
     * ギフト包装料
@@ 1496-1504 (lines=9) @@
1493
     * @param string $giftWrapCharge
1494
     * @return self
1495
     */
1496
    public function setGiftWrapCharge(string $giftWrapCharge): self
1497
    {
1498
        if (isset($this->params['Detail']['GiftWrapCharge'])) {
1499
            throw new LogicException('GiftWrapCharge is already set.');
1500
        }
1501
        $this->params['Detail']['GiftWrapCharge'] = $giftWrapCharge;
1502
1503
        return $this;
1504
    }
1505
1506
    /**
1507
     * 値引き
@@ 1513-1521 (lines=9) @@
1510
     * @param string $discount
1511
     * @return self
1512
     */
1513
    public function setDiscount(string $discount): self
1514
    {
1515
        if (isset($this->params['Detail']['Discount'])) {
1516
            throw new LogicException('Discount is already set.');
1517
        }
1518
        $this->params['Detail']['Discount'] = $discount;
1519
1520
        return $this;
1521
    }
1522
1523
    /**
1524
     * 調整額
@@ 1531-1539 (lines=9) @@
1528
     * @param string $adjustments
1529
     * @return self
1530
     */
1531
    public function setAdjustments(string $adjustments): self
1532
    {
1533
        if (isset($this->params['Detail']['Adjustments'])) {
1534
            throw new LogicException('Adjustments is already set.');
1535
        }
1536
        $this->params['Detail']['Adjustments'] = $adjustments;
1537
1538
        return $this;
1539
    }
1540
1541
    /**
1542
     * 商品LineID