public function hydrate($puppetModules, $revision)
    {
        if ($revision->hasGroups()) {
            foreach ($revision->getGroups() as $group) {
                $this->groupHydrator->hydrate($puppetModules, $group);
            }
        }
    }
public function hydrate($puppetModules, $revision)
    {
        if ($revision->hasGroups()) {
            foreach ($revision->getGroups() as $group) {
                $this->groupHydrator->hydrate($puppetModules, $group);
            }
        }
    }
public function hydrate ( $ puppetModules , $ revision ) { if ( $ revision -> hasGroups ( ) ) { foreach ( $ revision -> getGroups ( ) as $ group ) { $ this -> groupHydrator -> hydrate ( $ puppetModules , $ group ) ; } } }
Hydrate revision with the provided puppet modules data.

@param  PuppetModule[]    $puppetModules
@param  RevisionInterface $revision
@return RevisionInterface
Hydrate revision with the provided puppet modules data .