/**
  * {@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;
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function resetCurrentCartIdentifier()
 {
     $this->storage->removeData(self::STORAGE_KEY);
 }