| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Success implements TransactionResult |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var mixed whatever the state of running the transaction was |
||
| 11 | */ |
||
| 12 | private $finalState; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param mixed $finalState whatever the state of running the transaction was |
||
| 16 | */ |
||
| 17 | public function __construct($finalState) |
||
| 18 | { |
||
| 19 | $this->finalState = $finalState; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function throwFailures() |
||
| 23 | { |
||
| 24 | // Nothing to be thrown as this is a success |
||
| 25 | return $this; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function finalState() |
||
| 34 | } |
||
| 35 | } |
||
| 36 |