Webmozart\KeyValueStore\Api\KeyValueStore::clear PHP Method

clear() public method

If the backend of the store cannot be written, a {@link WriteException} is thrown. You should always handle this exception in your code: php try { $store->clear(); } catch (WriteException $e) { write failed }
public clear ( )
    public function clear();

Usage Example

 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     parent::clear();
     $this->types = array();
     $this->bindings = array();
     $this->store->clear();
 }
All Usage Examples Of Webmozart\KeyValueStore\Api\KeyValueStore::clear