Code Duplication    Length = 9-10 lines in 2 locations

Parser/Token.php 2 locations

@@ 160-168 (lines=9) @@
157
    /**
158
     * @param Token $start
159
     */
160
    public function setStart(Token $start = null)
161
    {
162
        $this->_end = null;
163
        $this->_start = $start;
164
165
        if ($start !== null) {
166
            $this->_start->_end = $this;
167
        }
168
    }
169
170
    /**
171
     * @return Token|null
@@ 181-190 (lines=10) @@
178
    /**
179
     * @param Token $end
180
     */
181
    public function setEnd(Token $end = null)
182
    {
183
        $this->_start = null;
184
        $this->_end = $end;
185
        $this->_length = null;
186
187
        if ($end !== null) {
188
            $this->_end->_start = $this;
189
        }
190
    }
191
192
    /**
193
     * @return Rule