/** * @see \Ableron\Lib\Storage\AbstractStorage::performDeleteAll() */ protected function performDeleteAll() { // clear storage $this->arrayStorage->clear(); // indicate that storage items have been deleted successfully return true; }
public function testClear() { $collection = new OrderedMap(array('test', 12)); $this->assertFalse($collection->isEmpty()); $collection->clear(); $this->assertTrue($collection->isEmpty()); $this->assertSame(0, $collection->count()); }
/** * @see \Ableron\Core\Form\FormElementInterface::clearLabelAttributes() */ public function clearLabelAttributes() { $this->attributes->clear(); return $this; }