store = StoreFactory::getStore(); } /** * Sets store instance * * @since 1.9 * * @param Store $store */ public function setStore( Store $store ) { $this->store = $store; return $this; } /** * Returns store object * * @since 1.9 * * @return Store */ public function getStore() { return $this->store; } /** * Sets Settings object * * @since 1.9 * * @param Settings $settings */ public function setSettings( Settings $settings ) { $this->settings = $settings; return $this; } /** * Returns Settings object * * @since 1.9 * * @return Store */ public function getSettings() { if ( $this->settings === null ) { $this->settings = Settings::newFromGlobals(); } return $this->settings; } }