diff options
Diffstat (limited to 'lib/Minz/Hook.php')
| -rw-r--r-- | lib/Minz/Hook.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Minz/Hook.php b/lib/Minz/Hook.php new file mode 100644 index 000000000..cd56de646 --- /dev/null +++ b/lib/Minz/Hook.php @@ -0,0 +1,20 @@ +<?php +declare(strict_types=1); + +class Minz_Hook { + public const DEFAULT_PRIORITY = 0; + + public function __construct( + private readonly \Closure $function, + private readonly int $priority, + ) { + } + + public function getFunction(): \Closure { + return $this->function; + } + + public function getPriority(): int { + return $this->priority; + } +} |
