mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Updated StackableArray
This commit is contained in:
parent
a4e38689db
commit
0bac7418db
@ -22,8 +22,20 @@
|
||||
define("ASYNC_CURL_GET", 1);
|
||||
define("ASYNC_CURL_POST", 2);
|
||||
|
||||
class StackableArray{
|
||||
public $counter = 0;
|
||||
class StackableArray extends Stackable{
|
||||
public function __construct(){
|
||||
foreach(func_get_args() as $n => $value){
|
||||
if(is_array($value)){
|
||||
$this->{$n} = new StackableArray();
|
||||
call_user_func_array(array($this->{$n}, "__construct"), $value);
|
||||
}else{
|
||||
$this->{$n} = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function __destruct(){}
|
||||
|
||||
public function run(){}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user