MatthiasMullie\Scrapbook\KeyValueStore::delete PHP Method

delete() public method

Returns true if item existed & was successfully deleted, false otherwise. Return value is a boolean true when the operation succeeds, or false on failure.
public delete ( string $key ) : boolean
$key string
return boolean
    public function delete($key);

Usage Example

 /**
  * {@inheritdoc}
  */
 public function delete($key)
 {
     if (!is_string($key)) {
         throw new InvalidArgumentException('Invalid key: ' . serialize($key) . '. Must be string.');
     }
     return $this->store->delete($key);
 }
All Usage Examples Of MatthiasMullie\Scrapbook\KeyValueStore::delete