* @license MIT */ class DisabledMethodException extends BadMethodCallException implements ExceptionInterface { const NAME = __CLASS__; /** * @param string $method * * @return self */ public static function disabledMethod($method) { return new self(sprintf('Method "%s" is forcefully disabled', (string) $method)); } }