| 1 | <?php |
||
| 8 | class IssueLocation |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $filePath; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $lineStart; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $filePath |
||
| 22 | * @param int $lineStart |
||
| 23 | */ |
||
| 24 | 38 | public function __construct($filePath, $lineStart) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get path to the file + filename |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getFilePath() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 38 | public function getFileName() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function toArray() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return int |
||
| 64 | */ |
||
| 65 | 38 | public function getLineStart() |
|
| 69 | } |
||
| 70 |