View file phpBB3/vendor/ocramius/proxy-manager/src/ProxyManager/Exception/DisabledMethodException.php

File size: 497B
<?php

declare(strict_types=1);

namespace ProxyManager\Exception;

use BadMethodCallException;

/**
 * Exception for forcefully disabled methods
 *
 * @author Marco Pivetta <ocramius@gmail.com>
 * @license MIT
 */
class DisabledMethodException extends BadMethodCallException implements ExceptionInterface
{
    const NAME = __CLASS__;

    public static function disabledMethod(string $method) : self
    {
        return new self(sprintf('Method "%s" is forcefully disabled', $method));
    }
}