peakphp/framework

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Config\Exception;

use Peak\Blueprint\Config\ConfigException;

class UnknownResourceException extends \Exception  implements ConfigException
{
    /**
     * @var mixed
     */
    private $resource;

    /**
     * UnknownTypeException constructor.
     * @param mixed $resource
     */
    public function __construct($resource)
    {
        $this->resource = $resource;
        parent::__construct('Unknown config resources');
    }

    /**
     * @return mixed
     */
    public function getResource()
    {
        return $this->resource;
    }
}