| 1 | <?php |
||
| 20 | final class ProductReviewStateMachineTransitionApplicator |
||
| 21 | { |
||
| 22 | /** @var StateMachineFactoryInterface $stateMachineFactory */ |
||
| 23 | private $stateMachineFactory; |
||
| 24 | |||
| 25 | public function __construct(StateMachineFactoryInterface $stateMachineFactory) |
||
| 29 | |||
| 30 | public function accept(ReviewInterface $data): ReviewInterface |
||
| 36 | |||
| 37 | public function reject(ReviewInterface $data): ReviewInterface |
||
| 43 | |||
| 44 | private function applyTransition(ReviewInterface $review, string $transition): void |
||
| 49 | } |
||
| 50 |