for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common;
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Utils\Path;
final class AbsoluteFileName extends FileName
{
/**
* @throws InvalidPathException
*/
public function __construct(string $fileName)
$isAbsolute = Path::isAbsolute($fileName);
if (!$isAbsolute) {
throw InvalidPathException::notAbsolutePath($fileName);
}
parent::__construct($fileName);