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

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