-
Notifications
You must be signed in to change notification settings - Fork 2
Pieter Hordijk edited this page Dec 31, 2018
·
1 revision
Validates the input (mixed
) to not be in the blacklist (mixed, ...mixed
).
Available since: 1.0.0
<?php declare(strict_types);
use HarmonyIO\Validation\Rule\In\Blacklist;
(new Blacklist('foo', 'bar', 'baz'))->validate('qux');
-
In.Blacklist
when the validated value is in the blacklist
Validates the input (mixed
) to be in the whitelist (mixed, ...mixed
).
Available since: 1.0.0
<?php declare(strict_types);
use HarmonyIO\Validation\Rule\In\Whitelist;
(new Whitelist('foo', 'bar', 'baz'))->validate('bar');
-
In.Whitelist
when the validated value is not in the whitelist