for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Translation\Extractor\Model;
/**
* An error with the source code that occured when extracting.
* @author Tobias Nyholm <[email protected]>
final class Error
{
* @var string
private $message;
private $path;
* @var int
private $line;
* @param string $message
* @param string $path
* @param int $line
public function __construct($message, $path, $line)
$this->message = $message;
$this->path = (string) $path;
$this->line = $line;
}
* @return string
public function getMessage()
return $this->message;
public function getPath()
return $this->path;
* @return int
public function getLine()
return $this->line;