class ExceptionFound
Hierarchy
- class \Egulias\EmailValidator\Result\Reason\ExceptionFound implements \Egulias\EmailValidator\Result\Reason\Reason
Expanded class hierarchy of ExceptionFound
2 files declare their use of ExceptionFound
- MessageIDValidation.php in vendor/
egulias/ email-validator/ src/ Validation/ MessageIDValidation.php - RFCValidation.php in vendor/
egulias/ email-validator/ src/ Validation/ RFCValidation.php
File
-
vendor/
egulias/ email-validator/ src/ Result/ Reason/ ExceptionFound.php, line 5
Namespace
Egulias\EmailValidator\Result\ReasonView source
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();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ExceptionFound::$exception | private | property | ||
ExceptionFound::code | public | function | Code for user land to act upon; | Overrides Reason::code |
ExceptionFound::description | public | function | Short description of the result, human readable. | Overrides Reason::description |
ExceptionFound::__construct | public | function |