-
Notifications
You must be signed in to change notification settings - Fork 2
Color
Pieter Hordijk edited this page Dec 30, 2018
·
1 revision
Validates the input (string) to be a hexadecimal color.
Available since: 1.0.0
<?php declare(strict_types);
use HarmonyIO\Validation\Rule\Color\Hexadecimal;
(new Hexadecimal())->validate('#ff3300');-
Type.Stringwhen the validated value is not a string -
Color.Hexadecimalwhen the validated value is not a valid hexadecimal color