app/User.php
public static function rowMapper(): Closure
    {
        return static function (stdClass $row): User {
            return new static((int) $row->user_id, $row->user_name, $row->real_name, $row->email);
        };
    }
public static function rowMapper(): Closure
    {
        return static function (stdClass $row): User {
            return new static((int) $row->user_id, $row->user_name, $row->real_name, $row->email);
        };
    }
public static function rowMapper ( ) : Closure { return static function ( stdClass $ row ) : User { return new static ( ( int ) $ row -> user_id , $ row -> user_name , $ row -> real_name , $ row -> email ) ; } ; }
A closure which will create an object from a database row.

@return Closure
A closure which will create an object from a database row .