public function setGroupName($groupName)
    {
        $group = posix_getgrnam($groupName);
        if (! isset($group['gid'])) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid group name', $groupName));
        }

        $this->setGroupId($group['gid']);
    }
public function setGroupName($groupName)
    {
        $group = posix_getgrnam($groupName);
        if (! isset($group['gid'])) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid group name', $groupName));
        }

        $this->setGroupId($group['gid']);
    }
public function setGroupName ( $ groupName ) { $ group = posix_getgrnam ( $ groupName ) ; if ( ! isset ( $ group [ 'gid' ] ) ) { throw new InvalidArgumentException ( sprintf ( '"%s" is not a valid group name' , $ groupName ) ) ; } $ this -> setGroupId ( $ group [ 'gid' ] ) ; }
Defines the current group name.


@param string $groupName Unix group name.

@throws RuntimeException When unable to update current group name.
Defines the current group name .