Add magic methods

This commit is contained in:
Barry vd. Heuvel
2014-08-06 13:04:52 +02:00
parent 27ffcb883c
commit 8dcc74a95f
3 changed files with 35 additions and 17 deletions
+2 -2
View File
@@ -26,10 +26,10 @@ class Method
protected $params_with_default = array();
protected $interfaces = array();
public function __construct($method, $alias, $class, $interfaces = array())
public function __construct($method, $alias, $class, $methodName = null, $interfaces = array())
{
$this->interfaces = $interfaces;
$this->name = $method->name;
$this->name = $methodName ?: $method->name;
$this->namespace = $method->getDeclaringClass()->getNamespaceName();
//Create a DocBlock and serializer instance