src/Sulu/Bundle/SecurityBundle/Entity/Role.php
public function addSetting(RoleSettingInterface $setting)
    {
        $this->settings->set($setting->getKey(), $setting);

        return $this;
    }
public function addSetting(RoleSettingInterface $setting)
    {
        $this->settings->set($setting->getKey(), $setting);

        return $this;
    }
public function addSetting ( RoleSettingInterface $ setting ) { $ this -> settings -> set ( $ setting -> getKey ( ) , $ setting ) ; return $ this ; }
Add setting.

@param RoleSettingInterface $setting

@return Role
Add setting .