123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /*
- * This file is part of the Sylius package.
- *
- * (c) Paweł Jędrzejewski
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Sylius\Component\Resource\StateMachine;
- use SM\StateMachine\StateMachineInterface as BaseStateMachineInterface;
- /**
- * Sylius State Machine
- *
- * @author Alexandre Bacco <alexandre.bacco@gmail.com>
- */
- interface StateMachineInterface extends BaseStateMachineInterface
- {
- /**
- * Returns the possible transition from given state
- * Returns null if no transition is possible
- *
- * @param string $fromState
- *
- * @return string|null
- */
- public function getTransitionFromState($fromState);
- /**
- * Returns the possible transition to the given state
- * Returns null if no transition is possible
- *
- * @param string $toState
- *
- * @return string|null
- */
- public function getTransitionToState($toState);
- }
|