protected function getCompletionHelper($name, $type)
    {
        foreach ($this->helpers as $helper) {
            if ($helper->getType() != $type && $helper->getType() != CompletionInterface::ALL_TYPES) {
                continue;
            }

            if ($helper->getCommandName() == CompletionInterface::ALL_COMMANDS || $helper->getCommandName() == $this->command->getName()) {
                if ($helper->getTargetName() == $name) {
                    return $helper;
                }
            }
        }

        return null;
    }
protected function getCompletionHelper($name, $type)
    {
        foreach ($this->helpers as $helper) {
            if ($helper->getType() != $type && $helper->getType() != CompletionInterface::ALL_TYPES) {
                continue;
            }

            if ($helper->getCommandName() == CompletionInterface::ALL_COMMANDS || $helper->getCommandName() == $this->command->getName()) {
                if ($helper->getTargetName() == $name) {
                    return $helper;
                }
            }
        }

        return null;
    }
protected function getCompletionHelper ( $ name , $ type ) { foreach ( $ this -> helpers as $ helper ) { if ( $ helper -> getType ( ) != $ type && $ helper -> getType ( ) != CompletionInterface :: ALL_TYPES ) { continue ; } if ( $ helper -> getCommandName ( ) == CompletionInterface :: ALL_COMMANDS || $ helper -> getCommandName ( ) == $ this -> command -> getName ( ) ) { if ( $ helper -> getTargetName ( ) == $ name ) { return $ helper ; } } } return null ; }
Find a CompletionInterface that matches the current command, target name, and target type

@param string $name
@param string $type
@return CompletionInterface|null
Find a CompletionInterface that matches the current command target name and target type