Files
awo-hamburg-intranet/mysyde/common/classes/GenericObjectStorage.php

21 lines
495 B
PHP
Raw Normal View History

2026-02-17 14:56:23 +01:00
<?php
namespace DynCom\mysyde\common\classes;
use DynCom\mysyde\common\interfaces\GenericObjectStorageInterface;
/**
* Created by PhpStorm.
* User: Bauer
* Date: 6/2/2015
* Time: 10:21 AM
*/
class GenericObjectStorage extends \SplObjectStorage implements GenericObjectStorageInterface {
public function clear() {
$tempStorage = clone $this;
$this->addAll($tempStorage);
$this->removeAll($tempStorage);
$tempStorage = null;
}
}