| 1 | <?php |
||
| 5 | final class ChainResult implements ChainResultInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var bool |
||
| 9 | */ |
||
| 10 | private $isSuccess; |
||
| 11 | /** |
||
| 12 | * @var mixed |
||
| 13 | */ |
||
| 14 | private $data; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param mixed $data |
||
| 18 | * @param bool $isSuccess |
||
| 19 | */ |
||
| 20 | 3 | public function __construct($data, $isSuccess) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | 3 | public function isSuccess() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | 2 | public function getData() |
|
| 41 | } |
||
| 42 |