protected function checkRequiredParameters(array $options = null, $requiredParameters = [])
    {
        if (empty($options)) {
            throw new WidgetException('No params found!', $this->getName());
        }

        foreach ($requiredParameters as $parameter) {
            if (empty($options[$parameter])) {
                throw new WidgetParameterException(
                    'Required parameter ' . $parameter . ' not found or invalid!',
                    $this->widgetName,
                    $parameter
                );
            }
        }
    }
protected function checkRequiredParameters(array $options = null, $requiredParameters = [])
    {
        if (empty($options)) {
            throw new WidgetException('No params found!', $this->getName());
        }

        foreach ($requiredParameters as $parameter) {
            if (empty($options[$parameter])) {
                throw new WidgetParameterException(
                    'Required parameter ' . $parameter . ' not found or invalid!',
                    $this->widgetName,
                    $parameter
                );
            }
        }
    }
protected function checkRequiredParameters ( array $ options = null , $ requiredParameters = [ ] ) { if ( empty ( $ options ) ) { throw new WidgetException ( 'No params found!' , $ this -> getName ( ) ) ; } foreach ( $ requiredParameters as $ parameter ) { if ( empty ( $ options [ $ parameter ] ) ) { throw new WidgetParameterException ( 'Required parameter ' . $ parameter . ' not found or invalid!' , $ this -> widgetName , $ parameter ) ; } } }
Checks for required parameters.

@param array $options
@param array $requiredParameters

@throws WidgetException
@throws WidgetParameterException
Checks for required parameters .