Dhii/machine-state-machine-interface

View on GitHub
src/StateMachineAwareInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dhii\State;

/**
 * Something that is aware of, and can provide, a state machine.
 *
 * @since [*next-version*]
 */
interface StateMachineAwareInterface
{
    /**
     * Retrieves the state machine associated with this instance.
     *
     * @since [*next-version*]
     *
     * @return StateMachineInterface|null The state machine instance, if any.
     */
    public function getStateMachine();
}