public function setGroupClass(string $classname)
    {
        if (!class_exists($classname) || !is_subclass_of($classname, GroupInterface::class))
            throw new DomainException("Invalid group class: $classname");
        $this->group_class = $classname;
        return $this;
    }
public function setGroupClass(string $classname)
    {
        if (!class_exists($classname) || !is_subclass_of($classname, GroupInterface::class))
            throw new DomainException("Invalid group class: $classname");
        $this->group_class = $classname;
        return $this;
    }
public function setGroupClass ( string $ classname ) { if ( ! class_exists ( $ classname ) || ! is_subclass_of ( $ classname , GroupInterface :: class ) ) throw new DomainException ( "Invalid group class: $classname" ) ; $ this -> group_class = $ classname ; return $ this ; }
Set the GroupInterface class that represents groups.
@param string $classname the class to use for gruops. This should implement
Wedeto\Auth\GroupInterface.
@return Wedeto\Auth\Authentication PRovides fluent interface
Set the GroupInterface class that represents groups .