private function _hasMatchingTarget(Targets $targets): bool
    {
        foreach ($this->_config->targets() as $target) {
            if ($targets->hasTarget($target)) {
                return true;
            }
        }
        return false;
    }
private function _hasMatchingTarget(Targets $targets): bool
    {
        foreach ($this->_config->targets() as $target) {
            if ($targets->hasTarget($target)) {
                return true;
            }
        }
        return false;
    }
private function _hasMatchingTarget ( Targets $ targets ) : bool { foreach ( $ this -> _config -> targets ( ) as $ target ) { if ( $ targets -> hasTarget ( $ target ) ) { return true ; } } return false ; }
Check whether validation configuration has matching targets.

@param Targets $targets Set of eligible targets
@return boolean
Check whether validation configuration has matching targets .