Documentation

hook
in package

Class hook

Tags
subpackage

Models

Table of Contents

DEFAULT_PRIORITY  = 50
$args  : array<string|int, mixed>
$callableFunction  : callable
$name  : string
$priority  : int
__construct()  : mixed
do()  : mixed
Выолняет вызываемую функцию
getName()  : string
Возвращает имя
getPriority()  : int
Возвращает приоритер выполнения
setArgsForCallableFunction()  : $this
Сохраняет аргументы для вызываемой функции
setCallableFunction()  : $this
Сохраняет вызываемою функцию
setPriority()  : mixed
Сохраняет приоритер выполнения

Constants

DEFAULT_PRIORITY

public int DEFAULT_PRIORITY = 50

Properties

$args

private array<string|int, mixed> $args = array()

$callableFunction

private callable $callableFunction

$name

private string $name

$priority

private int $priority = self::DEFAULT_PRIORITY

Methods

__construct()

public __construct(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

do()

Выолняет вызываемую функцию

public do() : mixed
Return values
mixed

getName()

Возвращает имя

public getName() : string
Return values
string

getPriority()

Возвращает приоритер выполнения

public getPriority() : int
Return values
int

setArgsForCallableFunction()

Сохраняет аргументы для вызываемой функции

public setArgsForCallableFunction(array<string|int, mixed> $args) : $this
Parameters
$args : array<string|int, mixed>

Массив аргументов

Return values
$this

setCallableFunction()

Сохраняет вызываемою функцию

public setCallableFunction(callable $function) : $this
Parameters
$function : callable

вызываемая функция

Return values
$this

setPriority()

Сохраняет приоритер выполнения

public setPriority(int $priority) : mixed
Parameters
$priority : int

приоритет

Return values
mixed

Search results