Documentation

HookBase
in package

AbstractYes

Base for hook implementations.

Tags
author

Samerton

version
2.0.0-pr13
license

MIT

Table of Contents

Methods

validateParams()  : bool
Ensure a set of parameters has all the required fields.

Methods

validateParams()

Ensure a set of parameters has all the required fields.

protected static validateParams(array<string|int, mixed> $params, array<string|int, mixed> $required_params) : bool
Parameters
$params : array<string|int, mixed>

Array of parameters to check

$required_params : array<string|int, mixed>

Array of required parameter keys

Return values
bool

Whether $params contains all of $required_params


        
On this page

Search results