IsDateTimeFormat
class IsDateTimeFormat extends StringComparator (View source)
Checks if a string is a valid datetime in the given format.
Traits
Methods
__construct(string $format)
No description
bool
checkString(string $value)
Compare the input string against the comparator.
static IsDateTimeFormat
make(string $format)
No description
Details
__construct(string $format)
No description
final bool
__invoke(mixed $value)
Compare the input value against the comparator.
final bool
check(mixed $value)
Compare the input string against the comparator.
protected bool
checkString(string $value)
Compare the input string against the comparator.
static IsDateTimeFormat
make(string $format)
No description
protected string
resolveStringInput(mixed $value)
No description