* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\User\Preferences; use Icinga\User; use SplSubject; /** * Preference store that simply discards any settings made * * Mainly used as a fallback provider if no preferences can be created */ class NullStore implements LoadInterface, FlushObserverInterface { /** * Setter for user, does nothing * * @param User $user */ public function setUser(User $user) { } /** * Load preferences from source, return an empty array * * @return array */ public function load() { return array(); } /** * * Receive update from subject * * @link http://php.net/manual/en/splobserver.update.php * @param SplSubject $subject

* The SplSubject notifying the observer of an update. *

* @return void */ public function update(SplSubject $subject) { return null; } }