@@ 35-37 (lines=3) @@ | ||
32 | return; |
|
33 | } |
|
34 | $method = new Class_Method( $this->current_relative_path, $node->getLine(), $this->current_class, $node->name->name, $node->isStatic() ); |
|
35 | foreach ( $node->getParams() as $param ) { |
|
36 | $method->add_param( $param->var->name, $param->default, $param->type, $param->byRef, $param->variadic ); |
|
37 | } |
|
38 | $this->declarations->add( $method ); |
|
39 | } |
|
40 | if ( $node instanceof Node\Stmt\Function_ ) { |
|
@@ 42-44 (lines=3) @@ | ||
39 | } |
|
40 | if ( $node instanceof Node\Stmt\Function_ ) { |
|
41 | $function = new Function_( $this->current_relative_path, $node->getLine(), $node->name->name ); |
|
42 | foreach ( $node->getParams() as $param ) { |
|
43 | $function->add_param( $param->var->name, $param->default, $param->type, $param->byRef, $param->variadic ); |
|
44 | } |
|
45 | $this->declarations->add( $function ); |
|
46 | } |
|
47 | } |