protected function validateSettings($settings)
    {
        if (!is_array($settings)) {
            throw new InvalidProviderSettingsException();
        }

        $intersection = array_intersect(array_keys($settings), $this->mandatory);

        return count($intersection) === count($this->mandatory);
    }
protected function validateSettings($settings)
    {
        if (!is_array($settings)) {
            throw new InvalidProviderSettingsException();
        }

        $intersection = array_intersect(array_keys($settings), $this->mandatory);

        return count($intersection) === count($this->mandatory);
    }
protected function validateSettings ( $ settings ) { if ( ! is_array ( $ settings ) ) { throw new InvalidProviderSettingsException ( ) ; } $ intersection = array_intersect ( array_keys ( $ settings ) , $ this -> mandatory ) ; return count ( $ intersection ) === count ( $ this -> mandatory ) ; }
Determines whether the assigned
settings for a social network
are valid.

@return mixed
Determines whether the assigned settings for a social network are valid .