private function getOption($inputKey)
    {
        $option = null;

        foreach ($this->getOptions() as $currentOption) {
            $option = $currentOption->getName() == $inputKey ? $currentOption : $option;
        }

        return $option;
    }
private function getOption($inputKey)
    {
        $option = null;

        foreach ($this->getOptions() as $currentOption) {
            $option = $currentOption->getName() == $inputKey ? $currentOption : $option;
        }

        return $option;
    }
private function getOption ( $ inputKey ) { $ option = null ; foreach ( $ this -> getOptions ( ) as $ currentOption ) { $ option = $ currentOption -> getName ( ) == $ inputKey ? $ currentOption : $ option ; } return $ option ; }
Retrieve option by input key.

@param string $inputKey Input key.

@return \Magento\Framework\Setup\Option\AbstractConfigOption|null
Retrieve option by input key .