insertGroup() abstract public method

Inserts the given $group.
abstract public insertGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group $group ) : mixed
$group eZ\Publish\SPI\Persistence\Content\Type\Group
return mixed Group ID
 /**
  * Inserts the given $group.
  *
  * @param \eZ\Publish\SPI\Persistence\Content\Type\Group $group
  *
  * @return mixed Group ID
  */
 public function insertGroup(Group $group)
 {
     try {
         return $this->innerGateway->insertGroup($group);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
    /**
     * @param \eZ\Publish\SPI\Persistence\Content\Type\Group\CreateStruct $createStruct
     *
     * @return Group
     */
    public function createGroup( GroupCreateStruct $createStruct )
    {
        $group = $this->mapper->createGroupFromCreateStruct(
            $createStruct
        );

        $group->id = $this->contentTypeGateway->insertGroup(
            $group
        );

        return $group;
    }