Neos\Flow\ResourceManagement\Collection::getObjects PHP Метод

getObjects() публичный Метод

Returns all internal data objects of the storage attached to this collection.
public getObjects ( callable $callback = null ) : Generator
$callback callable Function called after each object
Результат Generator
    public function getObjects(callable $callback = null)
    {
        $objects = [];
        if ($this->storage instanceof PackageStorage && $this->pathPatterns !== []) {
            foreach ($this->pathPatterns as $pathPattern) {
                $objects = array_merge($objects, $this->storage->getObjectsByPathPattern($pathPattern, $callback));
            }
        } else {
            $objects = $this->storage->getObjectsByCollection($this, $callback);
        }
        // TODO: Implement filter manipulation here:
        // foreach ($objects as $object) {
        // 	$object->setStream(function() { return fopen('/tmp/test.txt', 'rb');});
        // }
        return $objects;
    }