1 | <?php |
||
8 | class Class_Method extends Declaration { |
||
9 | public $class_name; |
||
10 | public $method_name; |
||
11 | public $params; |
||
12 | public $static; |
||
13 | |||
14 | function __construct( $path, $line, $class_name, $method_name, $static ) { |
||
15 | $this->class_name = $class_name; |
||
16 | $this->method_name = $method_name; |
||
17 | $this->params = array(); |
||
18 | $this->static = $static; |
||
19 | parent::__construct( $path, $line ); |
||
20 | } |
||
21 | |||
22 | // TODO: parse "default" into comparable string form? |
||
23 | function add_param( $name, $default, $type, $byRef, $variadic ) { |
||
26 | |||
27 | function to_csv_array() { |
||
28 | return array( |
||
29 | $this->type(), |
||
30 | $this->path, |
||
31 | $this->line, |
||
32 | $this->class_name, |
||
33 | $this->method_name, |
||
34 | $this->static, |
||
35 | json_encode( $this->params ), |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | function type() { |
||
42 | |||
43 | function display_name() { |
||
47 | } |
||
48 |