Code Duplication    Length = 9-10 lines in 5 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/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

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 1 location

@@ 77-86 (lines=10) @@
74
     * @param string $sellerId
75
     * @return self
76
     */
77
    public function setSellerId(string $sellerId): self
78
    {
79
        if (isset($this->params['SellerId'])) {
80
            throw new LogicException('SellerId is already set.');
81
        }
82
83
        $this->params['SellerId'] = $sellerId;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @param string $orderId

src/YahooShoppingJp/Request/UpdateOrderInfoRequest.php 1 location

@@ 85-93 (lines=9) @@
82
     * @param string $sellerId
83
     * @return self
84
     */
85
    public function setSellerId(string $sellerId): self
86
    {
87
        if (isset($this->params['SellerId'])) {
88
            throw new LogicException('SellerId is already set.');
89
        }
90
        $this->params['SellerId'] = $sellerId;
91
92
        return $this;
93
    }
94
95
    /**
96
     * 更新者名(ビジネスID登録氏名)