VariableAssignmentLine::getPartAfter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Matks\PHPMakeUp\LineAlignment;
4
5
/**
6
 * Variable Assignment Line
7
 */
8
class VariableAssignmentLine
9
{
10
11
    /**
12
     * @var integer
13
     */
14
    private $lineNumber;
15
16
    /**
17
     * @var string
18
     */
19
    private $partBefore;
20
21
    /**
22
     * @var string
23
     */
24
    private $partAfter;
25
26
    /**
27
     * @param int    $lineNumber
28
     * @param string $partBefore
29
     * @param string $partAfter
30
     */
31
    public function __construct($lineNumber, $partBefore, $partAfter)
32
    {
33 1
        $this->lineNumber = $lineNumber;
34 1
        $this->partBefore = $partBefore;
35 1
        $this->partAfter  = $partAfter;
36 1
    }
37
38
    /**
39
     * @return int
40
     */
41
    public function getLineNumber()
42
    {
43 1
        return $this->lineNumber;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getPartBefore()
50
    {
51 1
        return $this->partBefore;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getPartAfter()
58
    {
59 1
        return $this->partAfter;
60
    }
61
}
62