KJ\Magento\Command\Order\Create\DummyCommand::_getCustomOptions PHP Method

_getCustomOptions() protected method

protected _getCustomOptions ( )
    protected function _getCustomOptions()
    {
        $customOptions = $this->_input->getOption('custom_options');
        $customOptions = explode(',', $customOptions);
        $customOptions = array_combine(range(1, count($customOptions)), $customOptions);
        if (!is_array($customOptions)) {
            throw new \Exception(sprintf("Error: Error parsing custom options"));
        }
        return $customOptions;
    }