for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Paraunit\Configuration;
/**
* Class OutputFile
* @package Paraunit\Configuration
*/
class OutputFile
{
/** @var string */
private $filePath;
* OutputPath constructor.
* @param string $filePath
public function __construct($filePath)
if (is_string($filePath) && $filePath !== '') {
$this->filePath = $filePath;
}
public function isEmpty(): bool
return $this->filePath === null;
* @return string
* @throws \RuntimeException
public function getFilePath(): string
if ($this->isEmpty()) {
throw new \RuntimeException('Program requested an empty file path');
return $this->filePath;