mirror of
https://github.com/fruithost/Panel.git
synced 2026-10-25 20:46:41 +09:00
27 lines
537 B
PHP
27 lines
537 B
PHP
<?php
|
|
/**
|
|
* fruithost | OpenSource Hosting
|
|
*
|
|
* @author Adrian Preuß
|
|
* @version 1.0.0
|
|
* @license MIT
|
|
*/
|
|
|
|
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;
|
|
}
|
|
}
|
|
?>
|