Sets the affinityGroup.

@param string $affinityGroup The affinityGroup
979569
public function setAffinityGroup($affinityGroup)
    {
        Validate::isString($affinityGroup, 'affinityGroup');
        Validate::notNullOrEmpty($affinityGroup, 'affinityGroup');

        $this->_affinityGroup = $affinityGroup;
    }
186084
public function addGroup(Group $group)
    {
        if ($this->hasGroup($group)) {
            throw new \InvalidArgumentException(sprintf('Group "%s" is allready defined.', $group->getName()));
        }

        $this->groups[$group->getName()] = $group;

        return $this;
    }
428221
public function addGroup($group)
    {
        if ($this->groups === null) {
            $this->setGroups($this->groupRepository->getAllByRevision($this));
        }
        $this->groups[] = $group;
        return $this;
    }
1287655
public function setOptions($options, $group = null)
    {
        if ($group) {
            $options = [$group => $options];
        }

        $this->handleOptions(null, $options);

        return $this;
    }
1046832
public void setGroup( final CharSequence group) {
		if ( group != null) format.getHeader().createEntry( GROUP, group);
	}
1205794
public static function create($parsed)
    {
        $result = new self();

        $result->_affinityGroups = [];
        $entries = Utilities::tryGetArray(
            Resources::XTAG_AFFINITY_GROUP,
            $parsed
        );

        foreach ($entries as $value) {
            $result->_affinityGroups[] = new AffinityGroup($value);
        }

        return $result;
    }
645567
public function addAttributeGroup($attributeGroup)
    {
        $attributesGroups = $this->getAttributeGroups();
        array_push($attributesGroups, $attributeGroup);
        $this->setAttributeGroups($attributesGroups);
    }
206312
public function registerAliases(array $aliasGroup)
    {
        foreach ($aliasGroup as $key => $aliases) {
            foreach ($aliases as $alias) {
                $this->app->alias($key, $alias);
            }
        }
    }
715333
private function addGroup(MenuGroup $group)
    {
        if (!$this->hasGroup($group->getName())) {
            $this->groups[$group->getName()] = $group;
        }
    }
1089963
public function setMunimentGroup(\Core\Entity\MunimentGroup $muniment_group = null) {
        $this->muniment_group = $muniment_group;

        return $this;
    }
344131
public function setGroup($group)
    {
        if (isset($this->options['group']) && $this->options['group']) {
            $group = $this->options['group'] . '/' . $group;
        }
        return $this->setOption('group', $group);
    }
1212058
public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
977789
public function setGroups($groups): self
    {
        if ($groups === null) {
            $this->groups = [];

            return $this;
        }

        if (is_array($groups)) {
            $this->groups = $groups;

            return $this;
        }

        $this->groups = explode(',', $groups);

        return $this;
    }
1334682
public function setGroup($group)
    {
        $fs = FileSystem::getFileSystem();

        $fs->chgrp($this->getPath(), $group);
    }
753742
public function setGroups($groups)
    {
        $this->hasGroupsProperty();

        $this->groups = $groups instanceof ArrayCollection ?
            $groups :
            new ArrayCollection($groups);
    }
754502
public function setGroup(array $group)
    {
        try {

            // need to return << true
            $this->validator->verify($group, [
                'isArray', 'isNotEmpty', 'isExists'
            ], 'group');

        }
        catch(ExceptionFactory $e) {
            echo $e->getMessage();
        }

        return $this;
    }
904507
function setEndPointGroup($endPointGroup) {
        if (strlen($this->getEndPoint()) > 0)
        {
            throw new RuntimeException(
                "End point has been already set. You can set either end point or end point group."
            );
        }

        $this->endPointGroup = (int) $endPointGroup;
    }