MatthiasMullie\Scrapbook\KeyValueStore::delete PHP Метод

delete() публичный Метод

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
Результат boolean
    public function delete($key);

Usage Example

Пример #1
0
 /**
  * {@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