src/Bridge/Service.php
public function getGroup($name)
    {
        if (array_key_exists($name, $this->groups)) {
            return $this->groups[$name];
        }

        throw new KeyNotFoundInSetException($name, array_keys($this->groups), 'groups');
    }
public function getGroup($name)
    {
        if (array_key_exists($name, $this->groups)) {
            return $this->groups[$name];
        }

        throw new KeyNotFoundInSetException($name, array_keys($this->groups), 'groups');
    }
public function getGroup ( $ name ) { if ( array_key_exists ( $ name , $ this -> groups ) ) { return $ this -> groups [ $ name ] ; } throw new KeyNotFoundInSetException ( $ name , array_keys ( $ this -> groups ) , 'groups' ) ; }
Returns a group in the service based on name.

@param string $name Group name

@throws KeyNotFoundInSetException

@return object Group object, if found.
Returns a group in the service based on name .