[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace ProxyManager\Exception;
   6  
   7  use LogicException;
   8  use ReflectionProperty;
   9  
  10  /**
  11   * Exception for invalid proxied classes
  12   *
  13   * @author Marco Pivetta <ocramius@gmail.com>
  14   * @license MIT
  15   */
  16  class UnsupportedProxiedClassException extends LogicException implements ExceptionInterface
  17  {
  18      public static function unsupportedLocalizedReflectionProperty(ReflectionProperty $property) : self
  19      {
  20          return new self(
  21              sprintf(
  22                  'Provided reflection property "%s" of class "%s" is private and cannot be localized in PHP 5.3',
  23                  $property->getName(),
  24                  $property->getDeclaringClass()->getName()
  25              )
  26          );
  27      }
  28  }


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