Documentation

Email extends Strings
in package

This is a type class of Email

Tags
author

Eric Huang eric.huang@atelli.ai

see
https://www.yiiframework.com/doc/api/2.0/yii-validators-emailvalidator

Table of Contents

$pattern  : string
getName()  : string
get name
getParquetTypeName()  : string
get type name of parquet
validate()  : bool
validate

Properties

$pattern

private string $pattern = '/^[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/'

the regular expression used to validate the attribute value.

Tags
see
https://www.regular-expressions.info/email.html

Methods

getName()

get name

public getName() : string
Return values
string

getParquetTypeName()

get type name of parquet

public getParquetTypeName() : string
Return values
string

validate()

validate

public validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

Search results