Message::getTool()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
  namespace Funivan\Cs\Report;
4
5
  use Funivan\Cs\FileTool\FileTool;
6
  use Funivan\Cs\Fs\File;
7
8
  /**
9
   * @author Ivan Shcherbak <[email protected]> 2016
10
   */
11
  class Message {
12
13
    /**
14
     * @var File
15
     */
16
    private $file;
17
18
    /**
19
     * @var string
20
     */
21
    private $text;
22
23
24
    /**
25
     * @var FileTool
26
     */
27
    private $tool;
28
29
    /**
30
     * @var int|null
31
     */
32
    private $line;
33
34
35
    /**
36
     * @param File $file
37
     * @param FileTool $tool
38
     * @param $text
39
     * @param int|null $line
40
     */
41 46
    public function __construct(File $file, FileTool $tool, $text, $line) {
42
43 46
      $this->file = $file;
44 46
      $this->text = $text;
45 46
      $this->tool = $tool;
46 46
      $this->line = $line;
47 46
    }
48
49
50
    /**
51
     * @return string
52
     */
53
    public function getText() {
54
      return $this->text;
55
    }
56
57
58
    /**
59
     * @return File
60
     */
61
    public function getFile() {
62
      return $this->file;
63
    }
64
65
66
    /**
67
     * @return int|null
68
     */
69 21
    public function getLine() {
70 21
      return $this->line;
71
    }
72
73
74
    /**
75
     * @return FileTool
76
     */
77
    public function getTool() {
78
      return $this->tool;
79
    }
80
81
  }