peakphp/framework

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Config\Exception;

use Peak\Blueprint\Config\ConfigException;

class CachePathNotFoundException extends \Exception implements ConfigException
{
    /**
     * @var string
     */
    private $path;

    /**
     * CachePathNotFoundException constructor.
     *
     * @param string $path
     */
    public function __construct(string $path)
    {
        parent::__construct('Config cache path "'.$path.'" not found');
        $this->path = $path;
    }

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