Schema/Schema.php
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;
    }
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;
    }
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 ; }
Adds the group.

@param Group $group

@throws \InvalidArgumentException

@return Schema
Adds the group .