src/components/systems/states/machines/extensions/ExtensionStatesRoute.php
protected function extractFromMachine(IStateMachine &$machine)
    {
        if (!isset($machine[IStatesRoute::class])) {
            $this[static::FIELD__ROUTE] = [];
            $this[static::FIELD__CURRENT_FROM] = '';
            $this[static::FIELD__CURRENT_TO] = null;

            $machine[IStatesRoute::class] = $this->__toArray();
        }

        $this->setConfig($machine[IStatesRoute::class]);

        return $this;
    }
protected function extractFromMachine(IStateMachine &$machine)
    {
        if (!isset($machine[IStatesRoute::class])) {
            $this[static::FIELD__ROUTE] = [];
            $this[static::FIELD__CURRENT_FROM] = '';
            $this[static::FIELD__CURRENT_TO] = null;

            $machine[IStatesRoute::class] = $this->__toArray();
        }

        $this->setConfig($machine[IStatesRoute::class]);

        return $this;
    }
@param IStateMachine $machine

@return $this