/** * {@inheritdoc} */ public function getStoredToken($clear = false) { if ($this->storage->hasData(self::STORE_KEY)) { $token = $this->storage->getData(self::STORE_KEY); if ($clear) { $this->storage->removeData(self::STORE_KEY); } return $token; } return; }
/** * {@inheritdoc} */ public function resetCurrentCartIdentifier() { $this->storage->removeData(self::STORAGE_KEY); }