aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Hook.php
blob: cd56de6464058d8a69a487d7cb1081a6f0f57822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
	}
}