public function getObjects(callable $callback = null) { foreach ($this->resourceManager->getCollectionsByStorage($this) as $collection) { (yield $this->getObjectsByCollection($collection, $callback)); } }