Code Duplication    Length = 10-10 lines in 2 locations

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 2 locations

@@ 89-98 (lines=10) @@
86
     * @param ShipStatus $shipStatus
87
     * @return self
88
     */
89
    public function setShipStatus(ShipStatus $shipStatus): self
90
    {
91
        if (isset($this->params['Order']['Ship']['ShipStatus'])) {
92
            throw new LogicException('ShipStatus is already set.');
93
        }
94
95
        $this->params['Order']['Ship']['ShipStatus'] = $shipStatus->getValue();
96
97
        return $this;
98
    }
99
100
    /**
101
     * @param ShipMethod $shipMethod
@@ 104-113 (lines=10) @@
101
     * @param ShipMethod $shipMethod
102
     * @return self
103
     */
104
    public function setShipMethod(ShipMethod $shipMethod): self
105
    {
106
        if (isset($this->params['Order']['Ship']['ShipMethod'])) {
107
            throw new LogicException('ShipMethod is already set.');
108
        }
109
110
        $this->params['Order']['Ship']['ShipMethod'] = $shipMethod->getValue();
111
112
        return $this;
113
    }
114
115
    /**
116
     * @param string $shipNotes