Files
freecms/vendor/egulias/email-validator/src/Result/Reason/ExceptionFound.php
2022-07-18 08:00:16 +03:00

26 lines
445 B
PHP

<?php
namespace Egulias\EmailValidator\Result\Reason;
class ExceptionFound implements Reason
{
/**
* @var \Exception
*/
private $exception;
public function __construct(\Exception $exception)
{
$this->exception = $exception;
}
public function code() : int
{
return 999;
}
public function description() : string
{
return $this->exception->getMessage();
}
}