39 return key($this->storage) !==
false;
53 $element =
current($this->storage);
54 return $element ? $element[0] : NULL
62 $element =
current($this->storage);
63 return $element ? $element[1] : NULL
88 return count($this->storage);
98 foreach($this->storage as $element)
100 if ($object === $element[0])
115 if (is_object($obj) && !$this->
contains($obj))
117 $this->storage[] = array($obj, $inf);
127 foreach($this->storage as $idx => $element)
129 if ($object === $element[0])
131 unset($this->storage[$idx]);
146 $this->
attach($obj, $inf);
159 foreach($this->storage as $idx => $element)
161 if ($object === $element[0])
Exception thrown to indicate an unexpected value.
Interface to override array access of objects.
next()
Forward to next element.
rewind()
Rewind to top iterator as set in constructor.
This Interface allows to hook into the global count() function.