Lines Matching refs:storage
26 $storage = new MyStorage();
30 $storage->attach(new TestClass($key), $value);
33 var_dump(count($storage));
35 foreach($storage as $object)
40 var_dump($storage);
42 var_dump(serialize($storage));
45 $storage2 = unserialize(serialize($storage));
55 $storage->attach(new TestClass(3), new stdClass);
56 $storage->attach(new TestClass(4), new TestClass(5));
58 var_dump(unserialize(serialize($storage)));
59 $storage->rewind();
60 $storage->next();
61 var_dump($storage->key());
62 var_dump($storage->current());
63 var_dump($storage->getInfo());
64 $storage->setInfo("bar");
65 var_dump($storage->getInfo());
67 var_dump(unserialize(serialize($storage)));
68 $storage->rewind();
69 $storage->next();
70 $storage->next();
71 var_dump($storage->key());
72 var_dump($storage->current());
73 $storage->attach($storage->current(), "replaced");
75 var_dump(unserialize(serialize($storage)));
85 ["storage":"SplObjectStorage":private]=>
117 ["storage":"SplObjectStorage":private]=>
145 ["storage":"SplObjectStorage":private]=>
204 ["storage":"SplObjectStorage":private]=>
261 ["storage":"SplObjectStorage":private]=>