ResourceMirror.php
public function materializeCollection($collection)
    {
        $materializedCollection = new Collection();
        foreach ($collection as $resource) {
            $materializedCollection->add($this->materialize($resource));
        }
        return $materializedCollection;
    }
public function materializeCollection($collection)
    {
        $materializedCollection = new Collection();
        foreach ($collection as $resource) {
            $materializedCollection->add($this->materialize($resource));
        }
        return $materializedCollection;
    }
public function materializeCollection ( $ collection ) { $ materializedCollection = new Collection ( ) ; foreach ( $ collection as $ resource ) { $ materializedCollection -> add ( $ this -> materialize ( $ resource ) ) ; } return $ materializedCollection ; }
Materializes a collection of resources.

@param Collection $collection
Resource collection to materialize.
@return Collection
A collection of materialized resources.
Materializes a collection of resources .