Created
October 9, 2014 08:21
-
-
Save bramstroker/4f730f36ec6de20a635e to your computer and use it in GitHub Desktop.
Unterminated comment MethodReflection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BarTrait | |
* | |
* @category MyNamespace | |
* @package MyNamespace | |
* @copyright 2014 | |
* @version SVN: $Id$ | |
*/ | |
namespace MyNamespace; | |
trait BarTrait | |
{ | |
/** | |
* @var string | |
*/ | |
protected $bar; | |
/** | |
* @return string | |
*/ | |
public function getBar() | |
{ | |
return $this->bar; | |
} | |
/** | |
* @param string $bar | |
*/ | |
public function setBar($bar) | |
{ | |
$this->bar = $bar; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Foo | |
* | |
* @category MyNamespace | |
* @package MyNamespace | |
* @copyright 2014 | |
* @version SVN: $Id$ | |
*/ | |
namespace MyNamespace; | |
use Exception as Use1; | |
use Exception as Use2; | |
use Exception as Use3; | |
use Exception as Use4; | |
use Exception as Use5; | |
use Exception as Use6; | |
use Exception as Use7; | |
use Exception as Use8; | |
use Exception as Use9; | |
use Exception as Use10; | |
use Exception as Use11; | |
use Exception as Use12; | |
use Exception as Use13; | |
use Exception as Use14; | |
use Exception as Use15; | |
use Exception as Use16; | |
class Foo | |
{ | |
use BarTrait; | |
/** | |
* @var int | |
*/ | |
protected $foo; | |
/** | |
* @return int | |
*/ | |
public function getFoo() | |
{ | |
return $this->foo; | |
} | |
/** | |
* @param int $foo | |
*/ | |
public function setFoo($foo) | |
{ | |
$this->foo = $foo; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'vendor/autoload.php'; | |
$phpClass = new \ProxyManager\Generator\ClassGenerator('test'); | |
$reflection = new \Zend\Code\Reflection\ClassReflection('MyNamespace\Foo'); | |
$generator = new \ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator(); | |
$generator->generate($reflection, $phpClass); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment