You are here

protected function EmailParser::setParts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailParser.php \Egulias\EmailValidator\EmailParser::setParts()
1 call to EmailParser::setParts()
EmailParser::parse in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailParser.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailParser.php, line 72

Class

EmailParser
EmailParser

Namespace

Egulias\EmailValidator

Code

protected function setParts($email) {
  $parts = explode('@', $email);
  $this->domainPart = $this->domainPartParser
    ->getDomainPart();
  $this->localPart = $parts[0];
}