Dhii/machine-state-machine-interface

View on GitHub
src/PossibleTransitionsAwareInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dhii\State;

use Dhii\Util\String\StringableInterface as Stringable;
use Traversable;

/**
 * Something that is aware of, and can provide, a list of transitions possible given its current state.
 *
 * @since [*next-version*]
 */
interface PossibleTransitionsAwareInterface
{
    /**
     * Gets the currently possible transitions.
     *
     * @since [*next-version*]
     *
     * @return string[]|Stringable[]|Traversable The currently possible transitions.
     */
    public function getPossibleTransitions();
}