ValidationArgument
ValidationArgument is a tuple of argument name and source that specifies the argument to validate.
Synopsis
Section titled “Synopsis”class ValidationArgument
| Since | 1.0.0 |
| Source | Validator/ValidationArgument.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $name, string $source = null): mixed
Create a new ValidationArgument instance.
| Parameter | Type | Description |
|---|---|---|
$name | string | the name of the argument. |
$source | string | the name of the source, if null, “parameters” is used. |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
getHash(): string | Get a unique hash value for this ValidationArgument. |
getName(): string | Retrieve the name of the argument for this instance. |
getSource(): string | Retrieve the name of the source for this instance. |
getHash()
Section titled “getHash()”public function getHash(): string
Get a unique hash value for this ValidationArgument.
Returns string — the hash value
getName()
Section titled “getName()”public function getName(): string
Retrieve the name of the argument for this instance.
Returns string — the name of the argument
getSource()
Section titled “getSource()”public function getSource(): string
Retrieve the name of the source for this instance.
Returns string — the name of the source.