Code Duplication    Length = 9-10 lines in 2 locations

Parser/Token.php 2 locations

@@ 164-172 (lines=9) @@
161
    /**
162
     * @param Token $start
163
     */
164
    public function setStart(Token $start = null)
165
    {
166
        $this->_end = null;
167
        $this->_start = $start;
168
169
        if ($start !== null) {
170
            $this->_start->_end = $this;
171
        }
172
    }
173
174
    /**
175
     * @return Token|null
@@ 185-194 (lines=10) @@
182
    /**
183
     * @param Token $end
184
     */
185
    public function setEnd(Token $end = null)
186
    {
187
        $this->_start = null;
188
        $this->_end = $end;
189
        $this->_length = null;
190
191
        if ($end !== null) {
192
            $this->_end->_start = $this;
193
        }
194
    }
195
196
    /**
197
     * @return Rule