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

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