public function setUserClass(string $classname)
    {
        if (!class_exists($classname) || !is_subclass_of($classname, UserInterface::class))
            throw new DomainException("Invalid user class: $classname");
        $this->user_class = $classname;
        return $this;
    }
public function setUserClass(string $classname)
    {
        if (!class_exists($classname) || !is_subclass_of($classname, UserInterface::class))
            throw new DomainException("Invalid user class: $classname");
        $this->user_class = $classname;
        return $this;
    }
public function setUserClass ( string $ classname ) { if ( ! class_exists ( $ classname ) || ! is_subclass_of ( $ classname , UserInterface :: class ) ) throw new DomainException ( "Invalid user class: $classname" ) ; $ this -> user_class = $ classname ; return $ this ; }
Set the UserInterface class that represents users.
@param string $classname The class to use for users. This should implement
Wedeto\Auth\UserInterface.
@return Wedeto\Auth\Authentication Provides fluent interface
Set the UserInterface class that represents users .