|
Revision 734, 0.8 KB
(checked in by moo, 2 years ago)
|
|
add sample code for decompiler
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | class ClassName |
|---|
| 4 | { |
|---|
| 5 | static public $static = array( |
|---|
| 6 | array('array'), |
|---|
| 7 | 'str' |
|---|
| 8 | ); |
|---|
| 9 | static public $public_static = array(2, 'str'); |
|---|
| 10 | static private $private_static = array(2, 'str'); |
|---|
| 11 | static protected $protected_static = array(2, 'str'); |
|---|
| 12 | public $property = array( |
|---|
| 13 | array('array'), |
|---|
| 14 | 'str' |
|---|
| 15 | ); |
|---|
| 16 | public $public_property = array(2, 'str'); |
|---|
| 17 | private $private_property = array(2, 'str'); |
|---|
| 18 | protected $protected_property = array(2, 'str'); |
|---|
| 19 | |
|---|
| 20 | public function __construct($a, $b) |
|---|
| 21 | { |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | function method(ClassName $a = null, $b = null) |
|---|
| 25 | { |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | public function publicMethod(ClassName $a = null, $b = 2) |
|---|
| 29 | { |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | protected function protectedMethod(ClassName $a, $b = array(array("array"))) |
|---|
| 33 | { |
|---|
| 34 | return 'protected'; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | private function privateMethod(ClassName $a, $b = null) |
|---|
| 38 | { |
|---|
| 39 | return 'private'; |
|---|
| 40 | } |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | ?> |
|---|