Code Duplication    Length = 10-10 lines in 4 locations

src/YahooShoppingJp/Request/GetOrderInfoRequest.php 1 location

@@ 87-96 (lines=10) @@
84
     * @param string $sellerId
85
     * @return self
86
     */
87
    public function setSellerId(string $sellerId): self
88
    {
89
        if (isset($this->params['SellerId'])) {
90
            throw new LogicException('SellerId is already set.');
91
        }
92
93
        $this->params['SellerId'] = $sellerId;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @param string $orderId

src/YahooShoppingJp/Request/SearchOrdersRequest.php 1 location

@@ 143-152 (lines=10) @@
140
     * @param string $sellerId
141
     * @return self
142
     */
143
    public function setSellerId(string $sellerId): self
144
    {
145
        if (isset($this->params['SellerId'])) {
146
            throw new LogicException('SellerId is already set.');
147
        }
148
149
        $this->params['SellerId'] = $sellerId;
150
151
        return $this;
152
    }
153
154
    /**
155
     * @param null|DateTimeImmutable $from

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 1 location

@@ 63-72 (lines=10) @@
60
     * @param string $sellerId
61
     * @return self
62
     */
63
    public function setSellerId(string $sellerId): self
64
    {
65
        if (isset($this->params['SellerId'])) {
66
            throw new LogicException('SellerId is already set.');
67
        }
68
69
        $this->params['SellerId'] = $sellerId;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $orderId

src/YahooShoppingJp/Request/UpdateOrderStatusRequest.php 1 location

@@ 74-83 (lines=10) @@
71
     * @param string $sellerId
72
     * @return self
73
     */
74
    public function setSellerId(string $sellerId): self
75
    {
76
        if (isset($this->params['SellerId'])) {
77
            throw new LogicException('SellerId is already set.');
78
        }
79
80
        $this->params['SellerId'] = $sellerId;
81
82
        return $this;
83
    }
84
85
    /**
86
     * 【必須】注文ID