lib/PhpParser/Builder/Function_.php 1 location
|
@@ 41-47 (lines=7) @@
|
38 |
|
* |
39 |
|
* @return Stmt\Function_ The built function node |
40 |
|
*/ |
41 |
|
public function getNode() { |
42 |
|
return new Stmt\Function_($this->name, array( |
43 |
|
'byRef' => $this->returnByRef, |
44 |
|
'params' => $this->params, |
45 |
|
'stmts' => $this->stmts, |
46 |
|
), $this->attributes); |
47 |
|
} |
48 |
|
} |
lib/PhpParser/Builder/Method.php 1 location
|
@@ 117-124 (lines=8) @@
|
114 |
|
* |
115 |
|
* @return Stmt\ClassMethod The built method node |
116 |
|
*/ |
117 |
|
public function getNode() { |
118 |
|
return new Stmt\ClassMethod($this->name, array( |
119 |
|
'type' => $this->type, |
120 |
|
'byRef' => $this->returnByRef, |
121 |
|
'params' => $this->params, |
122 |
|
'stmts' => $this->stmts, |
123 |
|
), $this->attributes); |
124 |
|
} |
125 |
|
} |
126 |
|
|