コード例 #1
0
 /**
  * @return Nette\Reflection\MethodReflection
  */
 public function getMethod($name)
 {
     return MethodReflection::import(parent::getMethod($name));
 }
コード例 #2
0
ファイル: ClassReflection.php プロジェクト: JanTvrdik/nette
 /**
  * @return Nette\Reflection\MethodReflection
  */
 public function getConstructor()
 {
     return ($ref = parent::getConstructor()) ? MethodReflection::import($ref) : NULL;
 }
コード例 #3
0
 /**
  * @return Nette\Reflection\MethodReflection | Nette\Reflection\FunctionReflection
  */
 public function getDeclaringFunction()
 {
     return ($ref = parent::getDeclaringFunction()) instanceof \ReflectionMethod ? MethodReflection::import($ref) : FunctionReflection::import($ref);
 }