Files
Chamilo/vendor/sylius/resource/StateMachine/StateMachineInterface.php
2025-08-14 22:41:49 +02:00

43 lines
1001 B
PHP

<?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);
}