peakphp/framework

View on GitHub
src/Config/Exception/FileNotFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Config\Exception;

use Peak\Blueprint\Config\ConfigException;

class FileNotFoundException extends \Exception implements ConfigException
{
    /**
     * @var string
     */
    private $configFile;

    /**
     * FileNotFoundException constructor.
     * @param string $configFile
     */
    public function __construct(string $configFile)
    {
        parent::__construct('Config file '.$configFile.' not found');
        $this->configFile = $configFile;
    }

    /**
     * @return string
     */
    public function getConfigFile(): string
    {
        return $this->file;
    }
}