Code Duplication    Length = 10-10 lines in 4 locations

src/YahooShoppingJp/Request/GetOrderInfoRequest.php 1 location

@@ 51-60 (lines=10) @@
48
     * @param string $sellerId
49
     * @return self
50
     */
51
    public function setSellerId(string $sellerId): self
52
    {
53
        if (isset($this->params['SellerId'])) {
54
            throw new LogicException('SellerId is already set.');
55
        }
56
57
        $this->params['SellerId'] = $sellerId;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @param string $orderId

src/YahooShoppingJp/Request/SearchOrdersRequest.php 1 location

@@ 37-46 (lines=10) @@
34
     * @param string $sellerId
35
     * @return self
36
     */
37
    public function setSellerId(string $sellerId): self
38
    {
39
        if (isset($this->params['SellerId'])) {
40
            throw new LogicException('SellerId is already set.');
41
        }
42
43
        $this->params['SellerId'] = $sellerId;
44
45
        return $this;
46
    }
47
48
    /**
49
     * @param null|DateTimeImmutable $from

src/YahooShoppingJp/Request/UpdateOrderStatusRequest.php 1 location

@@ 44-53 (lines=10) @@
41
     * @param string $sellerId
42
     * @return self
43
     */
44
    public function setSellerId(string $sellerId): self
45
    {
46
        if (isset($this->params['SellerId'])) {
47
            throw new LogicException('SellerId is already set.');
48
        }
49
50
        $this->params['SellerId'] = $sellerId;
51
52
        return $this;
53
    }
54
55
    /**
56
     * 【必須】注文ID

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 1 location

@@ 29-38 (lines=10) @@
26
     * @param string $sellerId
27
     * @return self
28
     */
29
    public function setSellerId(string $sellerId): self
30
    {
31
        if (isset($this->params['SellerId'])) {
32
            throw new LogicException('SellerId is already set.');
33
        }
34
35
        $this->params['SellerId'] = $sellerId;
36
37
        return $this;
38
    }
39
40
    /**
41
     * @param string $orderId