Files
fruithostPanel/classes/System/HookParameters.class.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;
}
}
?>