daveearley/Email-Validation-Tool

View on GitHub
src/Validations/ValidFormatValidator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace EmailValidation\Validations;

class ValidFormatValidator extends Validator implements ValidatorInterface
{
    public function getValidatorName(): string
    {
        return 'valid_format'; // @codeCoverageIgnore
    }

    public function getResultResponse(): bool
    {
        return $this->getEmailAddress()->isValidEmailAddressFormat();
    }
}