Skip to content

Instantly share code, notes, and snippets.

@bramstroker
Created October 9, 2014 08:21
Show Gist options
  • Save bramstroker/4f730f36ec6de20a635e to your computer and use it in GitHub Desktop.
Save bramstroker/4f730f36ec6de20a635e to your computer and use it in GitHub Desktop.
Unterminated comment MethodReflection
<?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;
}
}
<?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;
}
}
<?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