CodeDoc/Data/Method.php
authorAlan Knowles <alan@roojs.com>
Tue, 25 Oct 2016 09:18:09 +0000 (17:18 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 25 Oct 2016 09:18:09 +0000 (17:18 +0800)
CodeDoc/Data/Method.php

index a5aee45..0751c7a 100644 (file)
@@ -98,7 +98,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
         return
         
         array(
-            "name" => $this->name,
+            "name" => $this->name == '__construct' ? ('new ' . $this->class) : $this->name,
             "parent" => "",
             "title" => "",
             "permname" => "",
@@ -116,7 +116,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
                     'isConstructor' => $this->name == '__construct' ,
                     'items' => array(
                         array(
-                            'name' => $this->name,
+                            'name' => $this->name ,
                             'is_static' => $this->isStatic ? true:false,
                             'memberof' => $this->class,
                             'returndesc' => $this->name == '_construct' ? '' : $this->description->return->desc,