Back to Validation

Graph

docs/validators/Graph.md

3.1.12.0 KB
Original Source
<!-- SPDX-License-Identifier: MIT SPDX-FileCopyrightText: (c) Respect Project Contributors SPDX-FileContributor: Alexandre Gomes Gaigalas <[email protected]> SPDX-FileContributor: Danilo Correa <[email protected]> SPDX-FileContributor: Emmerson Siqueira <[email protected]> SPDX-FileContributor: Henrique Moody <[email protected]> -->

Graph

  • Graph()
  • Graph(string ...$additionalChars)

Validates if all characters in the input are printable and actually creates visible output (no white space).

php
v::graph()->assert('LKM@#$%4;');
// Validation passes successfully

Templates

Graph::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must consist only of printable non-spacing characters
inverted{{subject}} must not consist only of printable non-spacing characters

Graph::TEMPLATE_EXTRA

ModeTemplate
default{{subject}} must consist only of printable non-spacing characters or {{additionalChars}}
inverted{{subject}} must not consist only of printable non-spacing characters or {{additionalChars}}

Template placeholders

PlaceholderDescription
additionalCharsAdditional characters that are considered valid.
subjectThe validated input or the custom validator name (if specified).

Categorization

  • Strings

Changelog

VersionDescription
3.0.0Templates changed
0.5.0Created

See Also