Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Egulias\EmailValidator\Result\Reason;
4
 
5
class ExceptionFound implements Reason
6
{
7
    /**
8
     * @var \Exception
9
     */
10
    private $exception;
11
 
12
    public function __construct(\Exception $exception)
13
    {
14
        $this->exception = $exception;
15
 
16
    }
17
    public function code() : int
18
    {
19
        return 999;
20
    }
21
 
22
    public function description() : string
23
    {
24
        return $this->exception->getMessage();
25
    }
26
}