public function getAllByNode(PuppetDbModel\NodeInterface $node)
    {
        $environment = $this->environmentService->getByNode($node);
        $revision = $environment->getCurrentRevision();
        $groups[$environment->getNormalizedName()] = $revision->getGroupsMatchingHostname($node->getName());
        while ($environment->hasParent()) {
            $parent = $environment->getParent();
            $groups[$parent->getNormalizedName()] = $parent->getCurrentRevision()->getGroupsMatchingHostname($node->getName());
            $environment = $parent;
        }
        return $groups;
    }
public function getAllByNode(PuppetDbModel\NodeInterface $node)
    {
        $environment = $this->environmentService->getByNode($node);
        $revision = $environment->getCurrentRevision();
        $groups[$environment->getNormalizedName()] = $revision->getGroupsMatchingHostname($node->getName());
        while ($environment->hasParent()) {
            $parent = $environment->getParent();
            $groups[$parent->getNormalizedName()] = $parent->getCurrentRevision()->getGroupsMatchingHostname($node->getName());
            $environment = $parent;
        }
        return $groups;
    }
public function getAllByNode ( PuppetDbModel \ NodeInterface $ node ) { $ environment = $ this -> environmentService -> getByNode ( $ node ) ; $ revision = $ environment -> getCurrentRevision ( ) ; $ groups [ $ environment -> getNormalizedName ( ) ] = $ revision -> getGroupsMatchingHostname ( $ node -> getName ( ) ) ; while ( $ environment -> hasParent ( ) ) { $ parent = $ environment -> getParent ( ) ; $ groups [ $ parent -> getNormalizedName ( ) ] = $ parent -> getCurrentRevision ( ) -> getGroupsMatchingHostname ( $ node -> getName ( ) ) ; $ environment = $ parent ; } return $ groups ; }
Get all groups assigned to specified node group by environment name.

@param PuppetDbModel\NodeInterface $node
@return \KmbDomain\Model\GroupInterface[]
Get all groups assigned to specified node group by environment name .