uawdijnntqw1x1x1
IP : 13.58.191.60
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
jackpotjunglegam
/
public_html
/
80d3f
/
..
/
core
/
.
/
vendor
/
egulias
/
email-validator
/
src
/
Parser.php
/
/
<?php namespace Egulias\EmailValidator; use Egulias\EmailValidator\Result\Result; use Egulias\EmailValidator\Result\ValidEmail; use Egulias\EmailValidator\Result\InvalidEmail; use Egulias\EmailValidator\Result\Reason\ExpectingATEXT; abstract class Parser { /** * @var Warning\Warning[] */ protected $warnings = []; /** * @var EmailLexer */ protected $lexer; /** * id-left "@" id-right */ abstract protected function parseRightFromAt() : Result; abstract protected function parseLeftFromAt() : Result; abstract protected function preLeftParsing() : Result; public function __construct(EmailLexer $lexer) { $this->lexer = $lexer; } public function parse(string $str) : Result { $this->lexer->setInput($str); if ($this->lexer->hasInvalidTokens()) { return new InvalidEmail(new ExpectingATEXT("Invalid tokens found"), $this->lexer->token["value"]); } $preParsingResult = $this->preLeftParsing(); if ($preParsingResult->isInvalid()) { return $preParsingResult; } $localPartResult = $this->parseLeftFromAt(); if ($localPartResult->isInvalid()) { return $localPartResult; } $domainPartResult = $this->parseRightFromAt(); if ($domainPartResult->isInvalid()) { return $domainPartResult; } return new ValidEmail(); } /** * @return Warning\Warning[] */ public function getWarnings() : array { return $this->warnings; } protected function hasAtToken() : bool { $this->lexer->moveNext(); $this->lexer->moveNext(); return $this->lexer->token['type'] !== EmailLexer::S_AT; } }
/home/jackpotjunglegam/public_html/80d3f/../core/./vendor/egulias/email-validator/src/Parser.php