Completed
Push — develop ( 4961cb...5f7df1 )
by Matteo
03:22
created

DiffChunkLineDeleted   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 71.43%
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
ccs 5
cts 7
cp 0.7143
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDestNumber() 0 4 1
A __construct() 0 6 1
1
<?php
2
/**
3
 * GitElephant - An abstraction layer for git written in PHP
4
 * Copyright (C) 2013  Matteo Giachino
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program.  If not, see [http://www.gnu.org/licenses/].
18
 */
19
20
namespace GitElephant\Objects\Diff;
21
22
/**
23
 * DiffChunkLine deleted
24
 *
25
 * @author Matteo Giachino <[email protected]>
26
 */
27
class DiffChunkLineDeleted extends DiffChunkLineChanged
28
{
29
    /**
30
     * Class constructor
31
     *
32
     * @param int    $number  line number
33
     * @param string $content line content
34
     */
35 1
    public function __construct($number, $content)
36
    {
37 1
        $this->setNumber($number);
38 1
        $this->setContent($content);
39 1
        $this->setType(self::DELETED);
40 1
    }
41
42
    /**
43
     * Get destination line number
44
     *
45
     * @return int
46
     */
47
    public function getDestNumber()
48
    {
49
        return '';
50
    }
51
}
52