function Hostname::__construct
Parameters
array<string,mixed>|null $options:
bool|null $requireTld Whether to require the hostname to include its top-level domain (defaults to true):
string[]|null $groups:
Overrides Constraint::__construct
File
-
vendor/
symfony/ validator/ Constraints/ Hostname.php, line 38
Class
- Hostname
- Validates that a value is a valid host name.
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __construct(?array $options = null, ?string $message = null, ?bool $requireTld = null, ?array $groups = null, mixed $payload = null) {
parent::__construct($options, $groups, $payload);
$this->message = $message ?? $this->message;
$this->requireTld = $requireTld ?? $this->requireTld;
}