Code Duplication    Length = 10-10 lines in 3 locations

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 3 locations

@@ 138-147 (lines=10) @@
135
     * @param string $shipInvoiceNumber1
136
     * @return self
137
     */
138
    public function setShipInvoiceNumber1(string $shipInvoiceNumber1): self
139
    {
140
        if (isset($this->params['Order']['Ship']['ShipInvoiceNumber1'])) {
141
            throw new LogicException('ShipInvoiceNumber1 is already set.');
142
        }
143
144
        $this->params['Order']['Ship']['ShipInvoiceNumber1'] = $shipInvoiceNumber1;
145
146
        return $this;
147
    }
148
149
    /**
150
     * @param string $shipInvoiceNumber2
@@ 153-162 (lines=10) @@
150
     * @param string $shipInvoiceNumber2
151
     * @return self
152
     */
153
    public function setShipInvoiceNumber2(string $shipInvoiceNumber2): self
154
    {
155
        if (isset($this->params['Order']['Ship']['ShipInvoiceNumber2'])) {
156
            throw new LogicException('ShipInvoiceNumber2 is already set.');
157
        }
158
159
        $this->params['Order']['Ship']['ShipInvoiceNumber2'] = $shipInvoiceNumber2;
160
161
        return $this;
162
    }
163
164
    /**
165
     * @param string $shipUrl
@@ 168-177 (lines=10) @@
165
     * @param string $shipUrl
166
     * @return self
167
     */
168
    public function setShipUrl(string $shipUrl): self
169
    {
170
        if (isset($this->params['Order']['Ship']['ShipUrl'])) {
171
            throw new LogicException('ShipUrl is already set.');
172
        }
173
174
        $this->params['Order']['Ship']['ShipUrl'] = '![CDATA['.$shipUrl.']]';
175
176
        return $this;
177
    }
178
179
    /**
180
     * @param \DateTimeImmutable $shipDate