function __construct($id, DoxyGroup $parent = null, $gid = null)
 {
     Assert::isScalar($id);
     Assert::isScalarOrNull($gid);
     $this->id = $id;
     $this->parent = $parent;
     $this->gid = $gid ? $gid : $this->generateGid();
     if ($this->parent) {
         $this->parent->addInner($this);
     }
 }