Code Duplication    Length = 9-10 lines in 2 locations

Parser/Token.php 2 locations

@@ 156-164 (lines=9) @@
153
    /**
154
     * @param Token $start
155
     */
156
    public function setStart(Token $start = null)
157
    {
158
        $this->_end = null;
159
        $this->_start = $start;
160
161
        if ($start !== null) {
162
            $this->_start->_end = $this;
163
        }
164
    }
165
166
    /**
167
     * @return Token|null
@@ 177-186 (lines=10) @@
174
    /**
175
     * @param Token $end
176
     */
177
    public function setEnd(Token $end = null)
178
    {
179
        $this->_start = null;
180
        $this->_end = $end;
181
        $this->_length = null;
182
183
        if ($end !== null) {
184
            $this->_end->_start = $this;
185
        }
186
    }
187
188
    /**
189
     * @return Rule