Code Duplication    Length = 9-9 lines in 3 locations

src/YahooShoppingJp/Request/UpdateOrderInfoRequest.php 3 locations

@@ 626-634 (lines=9) @@
623
     * @param BillAddressFrom $billAddressFrom
624
     * @return self
625
     */
626
    public function setBillAddressFrom(BillAddressFrom $billAddressFrom): self
627
    {
628
        if (isset($this->params['Pay']['BillAddressFrom'])) {
629
            throw new LogicException('BillAddressFrom is already set.');
630
        }
631
        $this->params['Pay']['BillAddressFrom'] = $billAddressFrom->getValue();
632
633
        return $this;
634
    }
635
636
    /**
637
     * ご請求先住所1
@@ 831-839 (lines=9) @@
828
     * @param ShipMethod $shipMethod
829
     * @return self
830
     */
831
    public function setShipMethod(ShipMethod $shipMethod): self
832
    {
833
        if (isset($this->params['Ship']['ShipMethod'])) {
834
            throw new LogicException('ShipMethod is already set.');
835
        }
836
        $this->params['Ship']['ShipMethod'] = $shipMethod->getValue();
837
838
        return $this;
839
    }
840
841
    /**
842
     * 配送方法名称
@@ 976-984 (lines=9) @@
973
     * @param ArriveType $arriveType
974
     * @return self
975
     */
976
    public function setArriveType(ArriveType $arriveType): self
977
    {
978
        if (isset($this->params['Ship']['ArriveType'])) {
979
            throw new LogicException('ArriveType is already set.');
980
        }
981
        $this->params['Ship']['ArriveType'] = $arriveType->getValue();
982
983
        return $this;
984
    }
985
986
    /**
987
     * 出荷日