init
This commit is contained in:
21
mysyde/common/classes/GenericObjectStorage.php
Normal file
21
mysyde/common/classes/GenericObjectStorage.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user