Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilEmailAddress.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Basic email address parser. This parser is very liberal and does not attempt | * Basic email address parser. This parser is very liberal and does not attempt | ||||
| * to be fully RFC-compliant, because trying to do so is a crazy mess. However, | * to be fully RFC-compliant, because trying to do so is a crazy mess. However, | ||||
| * it should parse all reasonable addresses which are actually in use on the | * it should parse all reasonable addresses which are actually in use on the | ||||
| * internet today. | * internet today. | ||||
| */ | */ | ||||
| final class PhutilEmailAddress { | final class PhutilEmailAddress extends Phobject { | ||||
| private $displayName; | private $displayName; | ||||
| private $localPart; | private $localPart; | ||||
| private $domainName; | private $domainName; | ||||
| public function __construct($email_address) { | public function __construct($email_address) { | ||||
| $email_address = trim($email_address); | $email_address = trim($email_address); | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||