Code Duplication    Length = 14-14 lines in 2 locations

src/YahooShoppingJp/Request/SearchOrdersRequest.php 2 locations

@@ 88-101 (lines=14) @@
85
     * @param int $offset
86
     * @return self
87
     */
88
    public function setOffset(int $offset): self
89
    {
90
        if ($offset < 0) {
91
            throw new InvalidArgumentException;
92
        }
93
94
        if (isset($this->params['Search']['Start'])) {
95
            throw new LogicException('Start is already set.');
96
        }
97
98
        $this->params['Search']['Start'] = $offset + 1;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @param int $limit
@@ 107-120 (lines=14) @@
104
     * @param int $limit
105
     * @return self
106
     */
107
    public function setLimit(int $limit): self
108
    {
109
        if ($limit < 0) {
110
            throw new InvalidArgumentException;
111
        }
112
113
        if (isset($this->params['Search']['Result'])) {
114
            throw new LogicException('Result is already set.');
115
        }
116
117
        $this->params['Search']['Result'] = $limit;
118
119
        return $this;
120
    }
121
122
    /**
123
     * @return string