[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhost/PropertyGenerator/ -> InitializerProperty.php (source)

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace ProxyManager\ProxyGenerator\LazyLoadingGhost\PropertyGenerator;
   6  
   7  use ProxyManager\Generator\Util\IdentifierSuffixer;
   8  use Zend\Code\Generator\PropertyGenerator;
   9  
  10  /**
  11   * Property that contains the initializer for a lazy object
  12   *
  13   * @author Marco Pivetta <ocramius@gmail.com>
  14   * @license MIT
  15   */
  16  class InitializerProperty extends PropertyGenerator
  17  {
  18      /**
  19       * Constructor
  20       *
  21       * @throws \Zend\Code\Generator\Exception\InvalidArgumentException
  22       */
  23      public function __construct()
  24      {
  25          parent::__construct(IdentifierSuffixer::getIdentifier('initializer'));
  26  
  27          $this->setVisibility(self::VISIBILITY_PRIVATE);
  28          $this->setDocBlock('@var \\Closure|null initializer responsible for generating the wrapped object');
  29      }
  30  }


Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1