public function getUserIdFromLogin(string $username): int
    {
        return (int) $this->getDriver()->user->get($username, ['by' => 'login'])->ID;
    }
public function getUserIdFromLogin(string $username): int
    {
        return (int) $this->getDriver()->user->get($username, ['by' => 'login'])->ID;
    }
public function getUserIdFromLogin ( string $ username ) : int { return ( int ) $ this -> getDriver ( ) -> user -> get ( $ username , [ 'by' => 'login' ] ) -> ID ; }
Get a user's ID from their username.

@param string $username The username of the user to get the ID of.

@return int ID of the user.
Get a user s ID from their username .