public function map(array $options, Banner $banner)
    {
        $bannerOptions = get_object_vars($banner);

        $validatedOptions = array();
        foreach ($bannerOptions as $name => $value) {
            $validatedOptions[$name] = empty($options[$name]) ? $value : $options[$name];
        }

        return $validatedOptions;
    }
public function map(array $options, Banner $banner)
    {
        $bannerOptions = get_object_vars($banner);

        $validatedOptions = array();
        foreach ($bannerOptions as $name => $value) {
            $validatedOptions[$name] = empty($options[$name]) ? $value : $options[$name];
        }

        return $validatedOptions;
    }
public function map ( array $ options , Banner $ banner ) { $ bannerOptions = get_object_vars ( $ banner ) ; $ validatedOptions = array ( ) ; foreach ( $ bannerOptions as $ name => $ value ) { $ validatedOptions [ $ name ] = empty ( $ options [ $ name ] ) ? $ value : $ options [ $ name ] ; } return $ validatedOptions ; }
Map additional options used by Banner object.

@param array $options
@param \EzSystems\PrivacyCookieBundle\Banner\Banner $banner

@return array
Map additional options used by Banner object .