Fix missed helpers for abstract methods the same name but different classes

This commit is contained in:
Pavlo Zhukov
2018-10-01 00:02:03 +03:00
parent 593e0d4aa7
commit 5d8d93273f
4 changed files with 15 additions and 2 deletions
+12
View File
@@ -31,6 +31,7 @@ class Method
protected $params = array();
protected $params_with_default = array();
protected $interfaces = array();
protected $real_name;
protected $return = null;
/**
@@ -45,6 +46,7 @@ class Method
$this->method = $method;
$this->interfaces = $interfaces;
$this->name = $methodName ?: $method->name;
$this->real_name = $method->name;
$this->namespace = $method->getDeclaringClass()->getNamespaceName();
//Create a DocBlock and serializer instance
@@ -112,6 +114,16 @@ class Method
return $this->name;
}
/**
* Get the real method name
*
* @return string
*/
public function getRealName()
{
return $this->real_name;
}
/**
* Get the parameters for this method
*