mirror of
https://github.com/fruithost/Panel.git
synced 2026-10-27 15:18:11 +09:00
19 lines
404 B
PHP
19 lines
404 B
PHP
<?php
|
|
namespace fruithost\System;
|
|
|
|
class HookParameters {
|
|
private array $args = [];
|
|
|
|
public function __construct() {
|
|
$this->args = func_get_args();
|
|
}
|
|
|
|
public function get(?int $position = null) : mixed {
|
|
if(!empty($position)) {
|
|
return $this->args[$position];
|
|
}
|
|
|
|
return $this->args;
|
|
}
|
|
}
|
|
?>
|