Opensoft\Rollout\Storage\MongoDBStorageAdapter::remove PHP Метод

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

public remove ( $key )
    public function remove($key)
    {
        $collection = $this->getCollectionName();
        $this->mongo->{$collection}->remove(['name' => $key]);
    }

Usage Example

 public function testRemove()
 {
     $adapter = new MongoDBStorageAdapter($this->mongo);
     $adapter->remove('key');
 }