| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Failed extends Result |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | protected $success = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $reason = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Failed constructor. |
||
| 27 | * @param string $reason |
||
| 28 | */ |
||
| 29 | public function __construct(string $reason = '') |
||
| 30 | { |
||
| 31 | $this->reason = $reason; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function reason() : string |
||
| 40 | } |
||
| 41 | } |
||
| 42 |