for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Patsura Dmitry https://github.com/ovr <[email protected]>
*/
namespace PHPSA;
class IssueLocation
{
* @var string
protected $filePath;
* @var int
protected $lineStart;
* @param string $filePath
* @param int $lineStart
public function __construct($filePath, $lineStart)
$this->filePath = $filePath;
$this->lineStart = $lineStart;
}
* Get path to the file + filename
*
* @return string
public function getFilePath()
return $this->filePath;
public function getFileName()
return basename($this->filePath);
* @return array
public function toArray()
return [
'path' => $this->filePath,
'lines' => [
'begin' => $this->lineStart,
'end' => $this->lineStart,
]
];
* @return int
public function getLineStart()
return $this->lineStart;