Code Duplication    Length = 10-10 lines in 4 locations

src/YahooShoppingJp/Request/GetOrderInfoRequest.php 1 location

@@ 66-75 (lines=10) @@
63
     * @param string $orderId
64
     * @return self
65
     */
66
    public function setOrderId(string $orderId): self
67
    {
68
        if (isset($this->params['Target']['OrderId'])) {
69
            throw new LogicException('OrderId is already set.');
70
        }
71
72
        $this->params['Target']['OrderId'] = $orderId;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return array

src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 3 locations

@@ 39-48 (lines=10) @@
36
     * @param string $orderId
37
     * @return self
38
     */
39
    public function setOrderId(string $orderId): self
40
    {
41
        if (isset($this->params['Target']['OrderId'])) {
42
            throw new LogicException('OrderId is already set.');
43
        }
44
45
        $this->params['Target']['OrderId'] = $orderId;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @param bool $isPointFix
@@ 54-63 (lines=10) @@
51
     * @param bool $isPointFix
52
     * @return self
53
     */
54
    public function setIsPointFix(bool $isPointFix): self
55
    {
56
        if (isset($this->params['Target']['IsPointFix'])) {
57
            throw new LogicException('IsPointFix is already set.');
58
        }
59
60
        $this->params['Target']['IsPointFix'] = $isPointFix ? 'true' : 'false';
61
62
        return $this;
63
    }
64
65
    /**
66
     * @param string $operationUser
@@ 69-78 (lines=10) @@
66
     * @param string $operationUser
67
     * @return self
68
     */
69
    public function setOperationUser(string $operationUser): self
70
    {
71
        if (isset($this->params['Target']['OperationUser'])) {
72
            throw new LogicException('OperationUser is already set.');
73
        }
74
75
        $this->params['Target']['OperationUser'] = $operationUser;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @param ShipStatus $shipStatus