Toolkit

ProtectedCommandGuard
in package
implements ValidatorInterface

FinalYes

Validates if a command is overridden.

Table of Contents

Interfaces

ValidatorInterface

Properties

$hookManager  : HookManager
The hook manager.
$protectedCommands  : array<string|int, string>
The list of protected command names.

Methods

__construct()  : mixed
Constructs a new ProtectedCommandGuard.
validate()  : void
{@inheritdoc}

Properties

$protectedCommands

The list of protected command names.

private array<string|int, string> $protectedCommands

Methods

__construct()

Constructs a new ProtectedCommandGuard.

public __construct(array<string|int, string> $protectedCommands, HookManager $hookManager) : mixed
Parameters
$protectedCommands : array<string|int, string>

The list of commands to protect.

$hookManager : HookManager

The Hook manager.

validate()

{@inheritdoc}

public validate(CommandData $commandData) : void
Parameters
$commandData : CommandData
Tags
SuppressWarnings

(PHPMD.CyclomaticComplexity)

(PHPMD.NPathComplexity)

On this page

Search results