[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/src/ProxyManager/Exception/ -> DisabledMethodException.php (source)

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace ProxyManager\Exception;
   6  
   7  use BadMethodCallException;
   8  
   9  /**
  10   * Exception for forcefully disabled methods
  11   *
  12   * @author Marco Pivetta <ocramius@gmail.com>
  13   * @license MIT
  14   */
  15  class DisabledMethodException extends BadMethodCallException implements ExceptionInterface
  16  {
  17      const NAME = __CLASS__;
  18  
  19      public static function disabledMethod(string $method) : self
  20      {
  21          return new self(sprintf('Method "%s" is forcefully disabled', $method));
  22      }
  23  }


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1