Method | Description | |
---|---|---|
__construct ( string $name, Egulias\EmailValidator\EmailValidator $emailValidator ) | Creates a new PathHeader with the given $name. | |
getAddress ( ) : string | Get the address which is used in this Header (if any). | |
getFieldBody ( ) : string | Get the string value of the body in this Header. | |
getFieldBodyModel ( ) : mixed | Get the model for the field body. | |
getFieldType ( ) : integer | Get the type of Header that this instance represents. | |
setAddress ( string $address ) | Set the Address which should appear in this Header. | |
setFieldBodyModel ( string $model ) | Set the model for the field body. |
Method | Description | |
---|---|---|
assertValidAddress ( string $address ) | Throws an Exception if the address passed does not comply with RFC 2822. |
public __construct ( string $name, Egulias\EmailValidator\EmailValidator $emailValidator ) | ||
$name | string | |
$emailValidator | Egulias\EmailValidator\EmailValidator |
public getAddress ( ) : string | ||
return | string |
public getFieldBody ( ) : string | ||
return | string |
public getFieldBodyModel ( ) : mixed | ||
return | mixed |
public getFieldType ( ) : integer | ||
return | integer |
public setAddress ( string $address ) | ||
$address | string |
public setFieldBodyModel ( string $model ) | ||
$model | string |