[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare(strict_types=1); 4 5 namespace ProxyManager\ProxyGenerator\LazyLoadingGhost\MethodGenerator; 6 7 use ProxyManager\Generator\MethodGenerator; 8 use Zend\Code\Generator\PropertyGenerator; 9 10 /** 11 * Implementation for {@see \ProxyManager\Proxy\LazyLoadingInterface::getProxyInitializer} 12 * for lazy loading value holder objects 13 * 14 * @author Marco Pivetta <ocramius@gmail.com> 15 * @license MIT 16 */ 17 class GetProxyInitializer extends MethodGenerator 18 { 19 /** 20 * Constructor 21 * 22 * @param PropertyGenerator $initializerProperty 23 * 24 * @throws \Zend\Code\Generator\Exception\InvalidArgumentException 25 */ 26 public function __construct(PropertyGenerator $initializerProperty) 27 { 28 parent::__construct('getProxyInitializer'); 29 $this->setBody('return $this->' . $initializerProperty->getName() . ';'); 30 } 31 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |